mirror of
https://github.com/agessaman/MeshCore.git
synced 2026-10-23 10:42:30 +00:00
feat(mqtt): add link diagnostics and improve network logging
This commit is contained in:
1 parent
50e2b2acba
commit
cdde4bf673
11 files changed
+317
-30
No files matched your search
@@ -500,6 +500,9 @@ GETTERS = {
|
||||
"link.status": lambda c: (
|
||||
"wifi: connected, IP: 192.168.1.42, RSSI: -58 dBm, Uptime: %dm"
|
||||
% (int(time.time() - ST.start) // 60)),
|
||||
"link.diag": lambda c: (
|
||||
"why:ethernet-not-enabled selected:wifi\n"
|
||||
"wifi:state:connected ip:192.168.1.42"),
|
||||
"mqtt.status": lambda c: cli_mqtt_status(c),
|
||||
"mqtt.presets": lambda c: "\n".join(
|
||||
"%2d. %s%s" % (i + 1, n, "" if nd == "none" else " (needs %s)" % nd)
|
||||
|
||||
Reference in new issue
Block a user