Reputation: 756
I love the new tech ref at readthedocs.com, very nice... I just wish I could find firmware that matches them. :-) I would like to call:
wifi.setmode(wifi.NULLMODE)
But it gives an error: "bad argument #1 to 'setmode' (number expected, got nil)"
wifi.STATION
is 1, wifi.SOFTAP
is 2, wifi.STATIONAP
is 3, so I tried 0, -1 and 4, all gave an error: "wrong arg type".
I downloaded what appeared to be the latest firmware from git -- is there some other official source?
Any insight appreciated.
Upvotes: 0
Views: 181
Reputation: 23535
There's a pending PR that will fix this: https://github.com/nodemcu/nodemcu-firmware/pull/1018/files#diff-708acae44868e2f538336aac253c2bc5R219
Upvotes: 2