I want a NodeMCU to be a master and another NodeMCU to be a slave. When I press a button, I want the master NodeMCU to broadcast its ID/variable, and I want the slave NodeMCU to receive the value. However, the slave should only receive the value when the button is pressed simultaneously on both the master and the slave. The master should not broadcast the ID when the button is not pressed. Is there a way to accomplish this?
2 posts - 2 participants