These are chat archives for SmingHub/Sming
with this routine i print some info on serial, but when quit routine, get errors (as you can see on image attached)
the network object must be 'closed'? how is correct?
JsonObject& network = jsonBuffer.createObject();
network["HEAP"] = system_get_free_heap_size();
network["IP"] = WifiStation.getIP().toString().c_str();
network["MASK"] = WifiStation.getNetworkMask().toString().c_str();
network["GWAY"] = WifiStation.getNetworkGateway().toString().c_str();
network["DHCP"] = WifiStation.isEnabledDHCP();
network["SSID"] = WifiStation.getSSID().c_str();
network["PASS"] = WifiStation.getPassword().c_str();
network["UDP"] = UDP_PORT_SERIALE;
network["CHAN"] = wifi_get_channel();
network["CHIP_ID"] = system_get_chip_id();
network["SDK"] = system_get_sdk_version();
network["VDD"] = system_get_vdd33();
network["CPU_FREQ"] = system_get_cpu_freq();
network["HOSTNAME"] = wifi_station_get_hostname();
Finally i found why network unstable on all kind of my phones. The mistake is mine. I used esp-open-sdk v1.4, but i find v1.5.1.
Optimize the data receiving process under TCP connection.
Optimize low MAC and increase stability of the software.
Optimize watchdog feeding process.
Optimize softAP working mode so that some stations can be easily connected.
Optimize station working mode, enabling connection even when the SSID of the AP has changed.
Optimize station working mode, and increase router’s compatibility during the connection process.
Optimize SSL shakehand.
Optimize espconn internal timer.
Optimize UDP transmission.
Improve the flash writing process.
Now everything is work. Thank you, @laurentppol @alonewolfx2 @sle118 ^^