6 years, 8 months ago.

best way to connect ESP8266 with mbed?

1. is it use of AT commands? That is simple but it seems waste of esp resources, we can't store web pages (html/css/js etc) in esp, everything will be stored in mbed chip, is that correct? 2. is it use of LUA scripts? Sending lua scripts to esp from mbed? not sure if that makes sense. any other possible way? Like we can program it directly from Arduino ide, not possible to do same from mbed ide?

Thank you.

1 Answer

6 years, 8 months ago.


You cannot flash the board from the mbed IDE. Please have a look at this link for getting started developing with the online IDE - https://docs.mbed.com/docs/mbed-os-handbook/en/latest/getting_started/blinky_compiler/.

As for communicating with the esp8266... We have an example for doing a simple HTTP request over WiFi - https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-wifi/. This example makes use of the esp8266 driver - https://github.com/ARMmbed/esp8266-driver. The driver uses the esp8266 espressif AT command set. The pins for connecting the ESP8266 to your mbed board are D1 and D0 in this example, so you'll need to wire your board that way to run this example.

Cheers, Sarah