So I went back to basics with the code and found that
sendMultiple(socketOn ? 0b11110 : 0b01110);
Was causing me the problem. I replaced that by passing the full code (e.g. 4 = 0b1110010111111111000011100) and I am able to turn all of the channels/1,2,3,4 on and off.
Thanks for your help. Hope you get your remotes and switches soon.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
So I went back to basics with the code and found that
Was causing me the problem. I replaced that by passing the full code (e.g. 4 = 0b1110010111111111000011100) and I am able to turn all of the channels/1,2,3,4 on and off.
Thanks for your help. Hope you get your remotes and switches soon.