Chat freely about anything...

User avatar
By questuk
#24385 Hi.

Currently I am using MQTT with an Arduino and an ethernet shield, this all works well.

But I am at a loss as to how to leave out the ethernet shield and replace it with the ESP8266.

I have looked online and am totally confused as to how to do this, I want to continue using my code that I have written but replace the '#include <Ethernet.h>' with a version for the ESP2866, is this possible ?

If not how else can I achive it without changing my code to much ?


Thanks


Gary
User avatar
By hudis
#24441 Hi, I tried the same... and ended up with ESP8266 replacing the arduino altogether. It can be programmed with the Arduino IDE and is much faster, has more memory, bigger buffers and if you buy the esp8266-12 board, you get quite enough digital pins too. I did not have to change any of my code so far, but I only payed with temperature sensors, distance sensors and i2c display.
User avatar
By questuk
#24447 Hi hudis ,

Thanks for that information, I learn by looking at code and understanding the parts I need too.

I would be very grateful if you could private message me your code then I can compile it and just check my IDE and my interface to my ESP2866 is working correctly, also I can see library's you used and how you set them up etc.

As I have had my ESP2866 for 3 months now and always hit a stumbling block and put it away again, then eventually i try again and again have problems.

Thank you :)

Gary