I'm rethinking my network layout right now and I was thinking if I could use an ESP8266 in AP mdoe (running a websocket server like: https://github.com/Links2004/arduinoWebSockets) as a serial gateway?
The description of the example code on the "Building a serial gateway" page says:
* DESCRIPTION
* The ArduinoGateway prints data received from sensors on the serial link.
* The gateway accepts input on seral which will be sent out on radio network.
So could I just use Serial.write()
to push my commands the esp8266 received from my smartphone on the websocket connection to serial, which will then be sent out to the nodes via radio?
In the other direction I would need to read data from the serial and push it to the smartphone via the websocket connection.
I was also thinking to just connect my phone to the gateway via usb and then make an app that sends commands to the gateway over serial, but a wireless connection would be so much nicer.
I'm probably gonna order some nrf24 module and some more arduinos on the weekend so I can tinker a bit with them as I'm new to radio stuff.