-->
Page 1 of 3

ESP8266 integration with Easy IoT

PostPosted: Mon Jan 08, 2018 5:00 pm
by Merkur
Hi - I am new to the ESP8266 but in the past week have learned a lot and got a Huzzah breakout board running with the Arduino IDE and uploaded programs to connect to WiFi, flash an LED, measure temperature etc.

I am trying to use the ESP8266 to measure temperature using a DHT11 sensor and report it using WiFi to an EasyIoT dashboard running on a Raspberry Pi. I am following the example code on github here: https://github.com/iot-playground/Arduino/blob/master/Esp8266EasyIoT/examples/esp8266easyiot_temperature_humidity/esp8266easyiot_temperature_humidity.ino

The problem I am having is the when I compile the code I get the error:
fatal error: avr/eeprom.h: No such file or directory
#include <avr/eeprom.h>

I cannot see the avr/eeprom library referenced anywhere in the code and am stumped to know where to start debugging it.

Do any more knowledgeable software engineers have any ideas. Software is not my strong point.

Has anyone else successfully integrated the ESP8266 to read temp/humidity and other parameters and transmit this to an EasyIoT dashboard for monitoring?

Thanks,

Paul

Re: ESP8266 integration with Easy IoT

PostPosted: Mon Jan 08, 2018 11:15 pm
by Merkur
I think I found the solution here: https://forum.arduino.cc/index.php?topic=410453.0

However, as always, I am onto the next error.

Thanks. Any guidance regarding the integration of the ESP8266 with EasyIoT software are welcome!

Paul

Re: ESP8266 integration with Easy IoT

PostPosted: Tue Jan 09, 2018 3:46 am
by gdsports
"avr" refers to the type of CPU used inside Arduino Unos, Megas, Leonardos, etc. so the code requires changes to work on ESP8266. Try deleting the line or commenting it out and see what happens.

ESP has an EEPROM library but it works a little differently from the AVR version so some modifications may be required.

Re: ESP8266 integration with Easy IoT

PostPosted: Tue Jan 09, 2018 9:29 am
by Merkur
Good input. Thanks for the clarification. I will look into this in more detail.

Paul