EadF wrote:I've found one important (for me at least) api change in 0.9.5:
user_interface.h:Code: Select all#define NULL_MODE 0x00
#define STATION_MODE 0x01
#define SOFTAP_MODE 0x02
#define STATIONAP_MODE 0x03
In 0.9.4 the call "wifi_set_opmode(NULL_MODE);" had the practical effect of turning off the WiFi
In 0.9.5 it means "let's crashs the whole system after a second or so"
Since this seems to be a persistent setting, it carried over from my "console only" test program to the blinky example i had problem with above. (blinky does not set wifi opmode)
No.
wifi_set_opmode(a2) SDK 0.9.5:
<wifi_set_opmode>:
addi a1, a1, -16
s32i.n a12, a1, 8
s32i.n a0, a1, 4
mov.n a12, a2
bltui a2, 4, _wifi_set_opmode5
movi.n a2, 0
j _wifi_set_opmode5
_wifi_set_opmode1:
l32r a0, 40240fcc <0x3fff08a0>
l32r a3, 4024104c <0x3ffe9c58>
l8ui a2, a0, 128
l8ui a3, a3, 0
beq a2, a12, 40241085
s32i.n a0, a1, 0
bnei a3, 1, _wifi_set_opmode2
mov.n a2, a12
call0 40240fe4 <wifi_set_opmode_local>
_wifi_set_opmode2:
l32i.n a4, a1, 0
l32r a2, 40240938 <0x3fff0918>
s8i a12, a4, 128
call0 402410ac <wifi_param_save_protect>
_wifi_set_opmode3:
movi.n a2, 1
_wifi_set_opmode4:
l32i.n a12, a1, 8
l32i.n a0, a1, 4
addi a1, a1, 16
ret.n
_wifi_set_opmode5:
movi.n a2, 5
call0 40240624 <(pm_is_open(), ets_timer_setfn(), pm_is_waked())>
bnei a2, -1, _wifi_set_opmode1
l32r a5, 402407ec <0x3ffe9c80>
s8i a12, a5, 130
j _wifi_set_opmode4