I am a newbie to ESP8266 and have been using it with Nodemcu 0.9.5 build 20150318. However for certain commands I am getting error. Like
Command: wifi.setmode(wifi.NULLMODE)
Error: bad argument #1 to 'setmode' (number expected, got nil)
Command: =wifi.getphymode()
Error: attempt to call field 'getphymode' (a nil value)
Command: wifi.setphymode(wifi.PHYMODE_B)
Error: attempt to call field 'setphymode' (a nil value)
please help