Hi all,
- My goal is: To be able to scan for wifi networks using the RPC Wifi.Scan on ESP32.
- My actions are: In the mos.yml config section I enable wifi.sta, and enter a dummy wifi.sta.ssid and wifi.sta.pass field. I include the mongoose-os-libs/rpc-service-wifi library in the libs section. I’m building with the latest mos version (2.12.1).
- The result I see is: If the SSID cannot be joined or is not present the Wifi.Scan RPC fails with the following message:
Error: context deadline exceeded
/Users/mos/tmp/mos_gopath/src/cesanta.com/common/go/mgrpc/mgrpc.go:442:
/Users/mos/tmp/mos_gopath/src/cesanta.com/mos/dev/dev_conn_impl.go:152:
/Users/mos/tmp/mos_gopath/src/cesanta.com/mos/dev/dev_conn_impl.go:165:
/Users/mos/tmp/mos_gopath/src/cesanta.com/mos/main.go:178: call failed - My expectation & question is: I would expect the Wifi.Scan call to operate also when the ESP32 is failing to connect to a network, since this is one of the important scenarios where it would come in useful. Is this a bug, a technical limitation, or am I missing something?