You're probable right. Running GatewayEsp8266 example but I seem to recall having had the same problem with the MQTTGateway. Will test and get back with you...Thanks
And thanks for the quick response.
@user2684 It's the regular HC-SR04, with ECHO & TRIGGER soldered together. I believe you can get them in either 5 or 3.3V
There are only 3 exposed pins on the SonOff SV, I need the other pins for other sensors.
Would like to help you test this project, tried to sign up to GIT yesterday but all Usernames came back as in use, will try again.
Two issues 1) AVR/EEPROM is not found, with PERSIST 0 & board ESP8266. 2) Don't know how to define HC-SR04 as a custom sensor, or can disguise it as another sensor type, with a PulseWidth.
I think we have a misunderstanding here.
Looks like a compiler problem.
The GateWay sketch works fine on Mega2560, with The ENC28J60, in other words, it works with Ethernet.
It also works on a standalone ESP8266, specifying "MY_GATEWAY_ESP8266", which finds the ESP8266WiFi.h.
However but it doesn't work with the Mega2560, or Arduino R3 for that matter, with ESP8266, specifying "MY_GATEWAY_ESP8266", ESP8266WiFi.h not found.
Not sure the Arduino would be suitable, due to limited memory, but since it won't compile, I'll never know.
Has anybody got this combination working?
Same problem with Mega2560 + ESP8266 DoIT WiFi Shield.
It does not compile the MySensors provided example : GateWAYESP8266, modifications, added userid/password ONLY
C:\Users\pwall\AppData\Local\Temp\arduino_modified_sketch_903580\GatewayESP8266.ino:132:25: fatal error: ESP8266WiFi.h: No such file or directory
open preproc\ctags_target_for_gcc_minus_e.cpp: The system cannot find the file specified.
Error compiling for board Arduino/Genuino Mega or Mega 2560.
Yes I understand that the ESP8266 is powerful enough to work without an Arduino but it so happens that I have one MEGA2560 and one WiFi shield, with spidery legs, that mates with the MEGA, and would very much like to see it work.