Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable cloud serial comms to individual devices #60

Merged
merged 1 commit into from
Apr 3, 2016

Conversation

kh90909
Copy link
Contributor

@kh90909 kh90909 commented Apr 3, 2016

I've implemented the workaround discussed in #30, as described below. With a corresponding change to OakTerm, this works correctly for my Oaks. You can test this modified OakTerm here: https://rawgit.com/kh90909/OakTerm/send-to-specific-devices/index.html. It's still in a feature branch for now, but hope to merge it into master tomorrow, along with lots more progress by @emcniece and myself.


Commit message

The Particle Cloud API and ParticleJS do not appear to allow publishing events to specific devices. This change works around that limitation by having the Oaks listen to /oak/device/stdin/:deviceid and /oak/device/reset/:deviceid so that they can be individually addressed.

The Oaks are also still listening to /oak/device/stdin and /oak/device/reset so that all of one's Oaks can be addressed simultaneously if desired.

The Particle Cloud API and ParticleJS do not appear to allow publishing
events to specific devices. This change works around that limitation by
having the Oaks listen to /oak/device/stdin/:deviceid and
/oak/device/reset/:deviceid so that they can be individually addressed.

The Oaks are also still listening to /oak/device/stdin and
/oak/device/reset so that all of one's Oaks can be addressed
simultaneously if desired.
@digistump digistump merged commit 0cb4091 into digistump:master Apr 3, 2016
@digistump
Copy link
Collaborator

Looks good - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants