After update to v0.6 ESP8266 relay node problem

6 years 8 months ago #168 by lewys.martin
I just updated to the new v0.6 server on raspberry pi, and I am unable to get the light relay node working again,

I have used the new library for arduino to compile and upload but still not working.

The temperature node works fine, the DO one does not show either ON or OFF and i cannot toggle
I have tried to remove the node and re add the node but still no good :(

Please Log in or Create an account to join the conversation.

6 years 8 months ago #170 by EasyIoT

lewys.martin wrote: I just updated to the new v0.6 server on raspberry pi, and I am unable to get the light relay node working again,

I have used the new library for arduino to compile and upload but still not working.

The temperature node works fine, the DO one does not show either ON or OFF and i cannot toggle
I have tried to remove the node and re add the node but still no good :(


Can you post code for your incomingMessage function?
I've just tested this yesterday. Instead of
if (message.type==S_DIGITAL_OUTPUT) {
it should be:
if (message.type==V_DIGITAL_VALUE) {

Please Log in or Create an account to join the conversation.

6 years 8 months ago - 6 years 8 months ago #172 by lewys.martin
ooh so in the arduino sketch, change from

to V_DIGITAL_VALUE ?

Do I change both PRESENT and MESSAGE.TYPE ?

Please Log in or Create an account to join the conversation.

6 years 8 months ago #173 by EasyIoT

lewys.martin wrote: ooh so in the arduino sketch, change from


to V_DIGITAL_VALUE ?

Do I change both PRESENT and MESSAGE.TYPE ?


Present stays the same. Change only incommingMessage.

Please Log in or Create an account to join the conversation.

6 years 8 months ago #174 by lewys.martin
Ok I made that change, and it works sometimes, but not always, sometimes it just doesnt respond.

also, it doesnt report on or off anymore D:

Please Log in or Create an account to join the conversation.

6 years 8 months ago #176 by EasyIoT

lewys.martin wrote: Ok I made that change, and it works sometimes, but not always, sometimes it just doesnt respond.

also, it doesnt report on or off anymore D:


Did you look in Arduino debug? I've changed some code in Arduino library, but it works for me.
I can not test it right now, because I'm not at home.

Please Log in or Create an account to join the conversation.

Time to create page: 0.245 seconds

Forum latest

  • No posts to display.