After update to v0.6 ESP8266 relay node problem

6 years 8 months ago #177 by lewys.martin
The way I have my arduinos wired up I cannot have connected to USB SERIAL and a power source for ESP at same time :(

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

6 years 8 months ago - 6 years 8 months ago #180 by EasyIoT

lewys.martin wrote: The way I have my arduinos wired up I cannot have connected to USB SERIAL and a power source for ESP at same time :(


I've checked. It works every time. I'm testing on Arduino Mega and HW serial port. Do you use original demo code or did you modify it?
Try to enable debug and see what's happening...

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

6 years 8 months ago #186 by cdj
Sorry but i've tried to compile this module and :

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows XP), Board: "Arduino Uno (256 Serial Buffer)"
easyrelay:18: error: expected ',' or '...' before '&' token
easyrelay:18: error: ISO C++ forbids declaration of 'Esp8266EasyIoTMsg' with no type
easyrelay:15: error: 'Esp8266EasyIoT' does not name a type
easyrelay.ino: In function 'void setup()':
easyrelay:31: error: 'esp' was not declared in this scope
easyrelay:36: error: 'S_DIGITAL_OUTPUT' was not declared in this scope
easyrelay.ino: In function 'void loop()':
easyrelay:41: error: 'esp' was not declared in this scope
easyrelay.ino: At global scope:
easyrelay:44: error: expected ',' or '...' before '&' token
easyrelay:44: error: ISO C++ forbids declaration of 'Esp8266EasyIoTMsg' with no type
easyrelay.ino: In function 'void incomingMessage(int)':
easyrelay:48: error: 'message' was not declared in this scope
easyrelay:48: error: 'V_DIGITAL_VALUE' was not declared in this scope

Why ?
Thanks
Dario

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

6 years 8 months ago #187 by EasyIoT

cdj wrote: Sorry but i've tried to compile this module and :

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Windows XP), Board: "Arduino Uno (256 Serial Buffer)"
easyrelay:18: error: expected ',' or '...' before '&' token
easyrelay:18: error: ISO C++ forbids declaration of 'Esp8266EasyIoTMsg' with no type
easyrelay:15: error: 'Esp8266EasyIoT' does not name a type
easyrelay.ino: In function 'void setup()':
easyrelay:31: error: 'esp' was not declared in this scope
easyrelay:36: error: 'S_DIGITAL_OUTPUT' was not declared in this scope
easyrelay.ino: In function 'void loop()':
easyrelay:41: error: 'esp' was not declared in this scope
easyrelay.ino: At global scope:
easyrelay:44: error: expected ',' or '...' before '&' token
easyrelay:44: error: ISO C++ forbids declaration of 'Esp8266EasyIoTMsg' with no type
easyrelay.ino: In function 'void incomingMessage(int)':
easyrelay:48: error: 'message' was not declared in this scope
easyrelay:48: error: 'V_DIGITAL_VALUE' was not declared in this scope

Why ?
Thanks
Dario


Did you downloaded latest ESP8266 EasyIoT Arduino library?

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

6 years 8 months ago #188 by cdj
Yes, sorry i've fixed i've downloaded but not imported correctly in arduino ide!
Thanks Igor
Dario

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

6 years 8 months ago #189 by cdj
Uhmmmmmmm ok now uploaded correct arduino sketch, and if i open serial monitor :

EasEasyIoTEsp init
nodeid:-1
hEasyIoTEsp init
nodeid:-1
hwReset
E_START
E_CWMODE
Send cmd:AT+CWMODE=1

AT+CWMODE=1

no change
Send cmd:AT+CWJAP="SereÜAT+CWJAP="MYNET","MYPASS"


OK
Send cmd:¼AT+CWJAP?

+CWJAP:"MYNET"

OK
Send cmd:AT+CIPSTART="TCP","192.168.0.10",37602"

AT+CIPSTART="TCP","192.168.0.10",37602"

Link typ ERROR
Response error
Send cmd:AT+CIPCLOSE

AT+CIPCLOSE

MUX=1
Request Node id

And then start an infinite loop to Esp init....

HELP ! :)

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

Time to create page: 0.208 seconds

Forum latest

  • No posts to display.