Silly question, but are both devices claimed to the same account?
If your (not)receiving Photon publishes some test data, does it appear in the same dashboard?
Not a silly question at all, but yes. They are both on the same account.
I changed the receiving Photon (called Display) to publish a public event “Echo_Temp” when it receives an event “Inside_Temp”. The Echo_Temp event was seen in the log and on the other Photon (called Sensors).
I’m having a similar problem. My receiving unit happens to be a Core but in essence it’s the same setup:
Photon publishes the temperature, the Core subscribes to receive.
The Core receives nothing if I add the MY_DEVICES option to the subscribe command. So frustrating.
Did you get yours sorted? I wonder, is it possible to just Subscribe to the stream from my Photon, did you try that as a workaround?
What system version have you got on your Core (and the other devices)?
Pre 0.4.9 there were some inconsitencies in the PUBLIC/PRIVATE and ALL_DEVICES/MY_DEVICES handling.
Hello, I’m running 0.5.2 on both devices, they’ve both auto updated as I’ve compiled new code to them… Hold on a minute… They do update automatically when using the web IDE don’t they?
I ran into this problem, and with the suggestions here and some experimentation realized that BOTH the publisher and subscriber MUST use the same setting. So for example, publishing privately and receiving publicly will not work.
It seemed like “private” should be a subset of “public”, but it does not appear to work that way. So to get things working, make sure both the publish and subscribe are using the same public/private setting.
I have open sourced my Alexa, iOS, and Photon code to make it easy for others to control their Photon projects with Alexa or an iOS app without having to write any Alexa or iOS code. I released this under the name “Patriot” and have had several other folks playing with it, and everything appeared to be working great.
However, then I started noticing in my console logs events from devices that I hadn’t created/defined. At that point I realized that publishes and subscribes in all of the code was defaulting to public. Since the default publish event name is “patriot”, anyone else using the open source library would be seeing everyone else’s publishes.
So I’m in the process of changing the Alexa skill, iOS app, and Photon code to all use PRIVATE and MY_DEVICES. But this isn’t working, and I’m seeing the same behavior described by DougJohnson: I see all the events in the console log, but I don’t get the events on the Photon sent by the iOS app or the Alexa skill. I’ve compared the log entries, and Event Name and Data are exactly the same. The publishes from iOS and Alexa say “api” in the Device column.
Should publishes from “api” be received by Photons subscribing to MY_DEVICES?
Is it possible to see the public/private setting in the Console log or somewhere else?