I want to write a program where a zigbee module is connected to one key and another zigbee module to a LED. If the key connected to the first module is pressed, it sends a packet to the second module, indicating that the key is pressed and the second module turn on the LED. and then sends a message to the other module that the lamp is on. Now, if the key is pressed again, it will turn off.
can anybody help me to write this program with Z-stack 3??????????????????