Photons communications over serial

I have two photons I would like to communicate over a hardwired serial connection. One functions as the master, the other as the slave. When the master gets updated, it will push data to the slave. Is there some code to carry out this purpose? If not, I would appreciate ideas or direction. Both the master and slave Photon will communicate to the cloud and phone app. However if the master fails or stops communicateing to the cloud, the slave will take over.
Thanks for any help.

@applefarm, you may want to look at the ArduinoSerialCommand library I ported. This could run on your slave with the master sending the commands and data in text format.

:smile:

1 Like

I don’t want to use WIFI. I want to hardwire the communications between the two Photons eiither by RS232 or I2C.
Thanks

1 Like

I’m checking it out now,
Thanks

@applefarm, the ArduinoSerialCommand library is ONLY for serial using Serial1 on the Photon.