-->
Page 1 of 1

Sending strings / commands to an MCU connected to an ESP8266

PostPosted: Wed Jan 10, 2018 8:20 am
by slow_rider
I have an AVR MCU hooked up to an ESP822 (ESP-12F module) via UART. I would like to create a simple application for my Android based phone that could send a number of commands in the form of strings or otherwise to the ESP8266 and those will be sent to the MCU so it can perform the suitable tasks.

I looked into MIT app inventor but I am not sure how data is sent from the phone to the ESP8266. I have managed to define a AP that I can connect my phone to but that's where things stop.

Direction and advice will be appreciated!

Re: Sending strings / commands to an MCU connected to an ESP

PostPosted: Fri Jan 12, 2018 3:53 am
by gdsports
I would try using Javascript webapp and websockets. The following is simple example of an ESP8266 running a webserver and web socket server.

https://gist.github.com/bbx10/667e3d4f5f2c0831d00b