-->
Page 1 of 1

NodeMCU aacess point for MQTT broker

PostPosted: Tue Oct 17, 2017 8:27 am
by sabiha patan 123
Is it possible to publish and subscribe using MQTT, when the mqtt broker is connected to a network which is created by a NOdeMCU?

Can a NodeMCU connect to its own created network?

Re: NodeMCU aacess point for MQTT broker

PostPosted: Tue Oct 17, 2017 9:18 am
by rudy
I don't see any reason why it wouldn't. But you have to take into consideration the fact that a ESP8266 is limited to the number of connections it can handle. If you have more than a few then I think that you would be better off having a router as the AP. (my opinion)

Obviously all of this is software dependent. How it is implemented.

Re: NodeMCU aacess point for MQTT broker

PostPosted: Tue Oct 17, 2017 10:53 am
by martin_g
You can increase the number of WiFi STAs connected to the ESP to a maximum of 8 (think, default is 5). The SDK uses the wifi_softap_set_config(() call for that.