-->
Page 1 of 2

MQTT how to replace the Arduino ethenet shield for a ESP8266

PostPosted: Mon Jul 27, 2015 9:19 am
by questuk
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

Re: MQTT how to replace the Arduino ethenet shield for a ESP

PostPosted: Mon Jul 27, 2015 11:52 pm
by hudis
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.

Re: MQTT how to replace the Arduino ethenet shield for a ESP

PostPosted: Tue Jul 28, 2015 2:58 am
by tytower
See the examples in the wiki on this page(scroll up)

Re: MQTT how to replace the Arduino ethenet shield for a ESP

PostPosted: Tue Jul 28, 2015 3:07 am
by questuk
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