Як зробити свій NodeMCU точкою доступу?
Для того, щоб увімкнути на NodeMCU режим WiFi-точки доступу, необхідно застосовувати метод wifi.setmode(mode[, save]) і вказати режим точки доступу наступним чином:
wifi.SOFTAP– тільки точка доступу, абоwifi.STATIONAP– і станція, і точка доступу одночасно.
Syntax
wifi.setmode(mode[, save])
Parameters
mode (value should be one of:)
wifi.STATIONwifi.SOFTAPwifi.STATIONAPwifi.NULLMODE
save (choose whether or not to save wifi mode to flash)
truefalse
Returns
current mode after setup
Див. документацію: wifi.setmode()
To enable WiFi access point mode on the NodeMCU, you must use the wifi.setmode (mode [, save]) method and specify the access point mode as follows:
wifi.SOFTAP– access point only, orwifi.STATIONAP– station and an access point at the same time.
See documentation: wifi.setmode()
