NodeMCU shows a default network as "AI-Thinkerxxx" when it's powered up.
How can I change the default access point name (AI thinker xxx to some other name)?
Where should I make changes to achieve it?
NodeMCU shows a default network as "AI-Thinkerxxx" when it's powered up.
How can I change the default access point name (AI thinker xxx to some other name)?
Where should I make changes to achieve it?
You can use the function wifi.ap.config()
. The sole parameter is a table of configuration details. An example:
local cfg = { ssid = 'MySSID', pwd = 'MySecurePwd', save = true }
wifi.api.config(cfg)
Full documentation can be found at https://nodemcu.readthedocs.io/en/master/en/modules/wifi/#wifiapconfig