NodeMCU as Relay and Transmitter
Posted: Tue May 10, 2016 1:49 pm
Hello, everyone!
I am very new to the ESP8266. I'm using the Arduino IDE as my programmer.
How can I send data to an API on my web server through the WiFi network using NodeMCU?
Also, if a Node is out of range of the specified WiFi router, how can I relay data through the closest/strongest connected Node/s to be passed on to the API of my web server?
To make it more clear:
Node #1 is 15 meters away, has strong WiFi signal to router, Is sending it's own sensor data. When the data is successfully received by the cloud, the cloud server sends a confirmation back. Node #1 will now clear the old stored data and record new data, attempt to send it.. The process repeats. Node #1 also listens for other Nodes or the cloud trying to send data to the cloud or other nodes, and will relay/route that data to the cloud as long as it is being pinged with that data.
Node #2 is 30 meters away, has medium WiFi signal, Is sending it's own sensor data. Node #2 behaves exactly as Node #1.
Node #3, #4, etc. are out of range of the main WiFi router. They are trying to send data to the cloud but can only reach Node #1, or #2. Node #3, #4, etc. behave exactly the same as Node #1, and #2, so if they are moved within range of the WiFi route, and other Nodes are moved out of range, they will relay the out of range Node's data to the cloud and pass the confirmation on to the Nodes that have originated the data.
When I try any examples of wireless access point in my NodeMCU they stop working and crash any computer that they are connected to via USB. Then I have to reset them. So, I think they are not freeing up memory that connections are using.
I am completely lost because this is all very new to me and the learning curve is steep.
Has anyone set something like this up with success, reliability and repeatability?
Thanks in advance for any help someone could give!
I am very new to the ESP8266. I'm using the Arduino IDE as my programmer.
How can I send data to an API on my web server through the WiFi network using NodeMCU?
Also, if a Node is out of range of the specified WiFi router, how can I relay data through the closest/strongest connected Node/s to be passed on to the API of my web server?
To make it more clear:
Node #1 is 15 meters away, has strong WiFi signal to router, Is sending it's own sensor data. When the data is successfully received by the cloud, the cloud server sends a confirmation back. Node #1 will now clear the old stored data and record new data, attempt to send it.. The process repeats. Node #1 also listens for other Nodes or the cloud trying to send data to the cloud or other nodes, and will relay/route that data to the cloud as long as it is being pinged with that data.
Node #2 is 30 meters away, has medium WiFi signal, Is sending it's own sensor data. Node #2 behaves exactly as Node #1.
Node #3, #4, etc. are out of range of the main WiFi router. They are trying to send data to the cloud but can only reach Node #1, or #2. Node #3, #4, etc. behave exactly the same as Node #1, and #2, so if they are moved within range of the WiFi route, and other Nodes are moved out of range, they will relay the out of range Node's data to the cloud and pass the confirmation on to the Nodes that have originated the data.
When I try any examples of wireless access point in my NodeMCU they stop working and crash any computer that they are connected to via USB. Then I have to reset them. So, I think they are not freeing up memory that connections are using.
I am completely lost because this is all very new to me and the learning curve is steep.
Has anyone set something like this up with success, reliability and repeatability?
Thanks in advance for any help someone could give!