Hello
I am playing with RelayWithButtonActuator from Development branch.
I have no radio connected to my arduino so meanwhile I use gateway mode via usb connection - that's why I took the code from the development branch
https://github.com/mysensors/Arduino/tree/1.4.2
I added/commented out the following definitions to disable radio and that way works for the example for relay without buttons:
// Enable serial gateway
#define MY_GATEWAY_SERIAL
// Enable and select radio type attached
// #define MY_RADIO_NRF24 // Disable to switch into USB GW without radio
When I control it from my controller (Domoticz) then the relay (which is modelled by LED pin 13) is reflecting any changes.
When I push the button (by connecting two wires from GND and D3) then the update message is sent to the controller (slow reaction but it works and the light switch icon is changed) however the relay itself is still unchanged (LED ignores the button)!
I am looking thru the code and see that there is no relay action in void loop() but such the activities are coded in void receive(const MyMessage &message)
Is it normal to have relay specific code out of the loop?
I guess that's the reason in my case because when I push the button then then only one way feedback is sent to the controller and no action message is sent back to the gateway, which could be received and processed to turn the relay on/off
http://pastebin.com/Q42G9WwE