We have created a firmware to connect things to Internet via the UART. It works as a transparent bridge: ESP8266 connects to the device via UART, and then everything that the device sends to ESP8266 module is sent to the Internet server, and everything that Internet server sends to the ESP, is pushed to the UART. These are some of the bridge configuration settings:
- WiFi net/pass,
- Remote host address/port,
- TCP or WebSocket as a carrier protocol,
- Port speeds,
etc
You can download and test the firmware at https://goo.gl/ME0aEj
To change the config parameters, miot tool can be used:
miot dev config get --port COM1
miot dev config set --port COM1 a.b.c=12345
Try it out!