Hello!
I have here a pair of Sparkfun ESP8266 Thing Dev board with headers and I am wondering this platform can be configured to work as a serial to WiFi shim? Such that the serial connection on it would work in much the same way as a serial Modem would work in those days of dialup, except the connection would be a WiFi presence on a chosen network at programming time.
Yes you can make a Wifi shim using ESP8266 Thing Dev board.
https://fab.cba.mit.edu/classes/863.14/tutorials/Programming/serialwifi.html
Hello!
Please remember that this also means in both directions. From the host to the device and out onto what the network does, and back to the host.
I think it will be possible this way-
The serial device will send data to the ESP8266 through its UART pins (TX on the device to RX on the ESP8266).
The ESP8266 will read this data using Serial.read()
in the sketch.
The ESP8266 will forward the received data to the connected WiFi client (e.g., a remote computer or server) using client.write()
.
The WiFi client (e.g., a computer connected via TCP) will send data to the ESP8266.
The ESP8266 will receive the data using client.read()
.
The ESP8266 will write this data out to the serial device using Serial.write()
.