As long as your network connection is good, then pub/sub is the easiest way to go. If you want this to work independently of your internet connection, then you could use 2 mesh devices and to do the Mesh.pub/sub… but the mesh stability is a bit buggy right now. Another alternative is to use TCP or UDP messages between the devices. TCP/UDP isn’t very plug-and-play though as the data would be un-encrypted and you would have to hard-code or discover the IP address of the other devices somehow. I’ve requested a new feature to do pub/sub between devices on the same subnet but that’s a pipe-dream at the moment.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Photon to Photon communication using Publish / Subscribe | 8 | 2453 | January 15, 2018 | |
| Multiple Photon InterConnectivity Project - Help Please! | 4 | 1144 | September 5, 2017 | |
| Publish/Subscribe on single Photon? | 4 | 4010 | January 4, 2016 | |
| Photon shows offline but still publishing events | 7 | 660 | September 1, 2020 | |
| Connecting Two photons Together | 10 | 7123 | March 24, 2016 |