This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
sdk:scripts:best-operator [2023/06/26 10:07] dodenhoeft |
sdk:scripts:best-operator [2023/06/30 12:25] (current) dodenhoeft |
||
---|---|---|---|
Line 59: | Line 59: | ||
if (is_void(net) || is_void(lai) || is_void(status)) continue; | if (is_void(net) || is_void(lai) || is_void(status)) continue; | ||
- | if (trim(tolower(status)) == "Available" && net != "") { | + | if (trim(tolower(status)) == "available" && net != "") { |
nb_syslog("detected network '%s' (lai %s)", net, lai); | nb_syslog("detected network '%s' (lai %s)", net, lai); | ||
networks[netcount++] = mkstruct("network", net, | networks[netcount++] = mkstruct("network", net, | ||
Line 95: | Line 95: | ||
status = nb_status("wwan"); | status = nb_status("wwan"); | ||
s = (int) struct_get(status, "MOBILE1_SIGNAL"); | s = (int) struct_get(status, "MOBILE1_SIGNAL"); | ||
- | if (s < -113) { | + | if (s > -113) { |
signal = s; | signal = s; | ||
nb_syslog("%s at '%s' with %d dBm", regstate, net, signal); | nb_syslog("%s at '%s' with %d dBm", regstate, net, signal); |