As the title says... Chat on...

User avatar
By ashubhatt
#29962 I am using NodeMCU Firmware latest build.
I have a project where I require to transmit sensor values from on esp (which is configured as station) to another esp (which is configured as access point).

In the nodemcu github wiki page I found wifi.setmode(wifi.STATIONAP), which can work as both access point and station. Can this work? Any example?

Can anybody point me to a sample script where esp module is utilized as simple repeater?

Edit:
Is there a way where I can transfer the TCP/MQTT packets from one AP to another in STATIONAP mode? Any Example?

Thank you.
User avatar
By AndyReischle
#30245 I am working on the same thing and "sortof" had it working. Here is my blog article about it: http://www.areresearch.net/2015/07/second-successful-attempt-to-route.html

The module acts more like a router than a repeater in this setup.
To resolve the DNS issue, I wrote this UDP forwarder for DNS: http://www.areresearch.net/2015/09/generic-udp-proxy-for-nodemcu-esp8266.html

I was working with a 0.9.5 release of nodemcu. This sort-of-worked-a-little but was extremely unstable. The module disconnected from the AP under even light loads. This might be the same thing as in this open issue: https://github.com/nodemcu/nodemcu-firmware/issues/639

So I upgraded my build environment to SDK 1.3.0 and used NodeMCU 0.9.6 but to my great disappointment, I now have problems connecting to the ESP-Module with a client device.
User avatar
By Cancelor
#46451 If the aim is to get MQTT info from device A to network B then two ESP8266s connected back to back via their serial ports might be the best solution. One of the ESP8266s would be an access point for device A and the other ESP8266 would be a station on network B.
User avatar
By suaveant
#46689 If the data is intermittent sensor data couldn't you set up a chain of 8266s in AP mode that once they received data switched to client mode and passed the data up the chain. It isn't elegant, but should be functional.