You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`custom`| User-configured | Username/Password | MQTT or WSS |
@@ -378,6 +380,8 @@ These settings apply across all MQTT slots:
378
380
-`get mqtt.rx` - Get RX packet uplinking setting (on/off)
379
381
-`get mqtt.tx` - Get TX packet uplinking setting (on/off/advert)
380
382
-`get mqtt.interval` - Get status publish interval
383
+
-`get mqtt.ntp` - Get effective NTP server hostname
384
+
-`get mqtt.ntp.diag` - Probe every configured NTP server for connectivity (does not change the clock; serial console shows each server's reported time, LoRa shows a compact `<server> ok|fail` list)
381
385
-`get mqtt.owner` - Get owner public key (serial console only)
382
386
-`get mqtt.email` - Get owner email address (serial console only)
383
387
@@ -393,6 +397,7 @@ These settings apply across all MQTT slots:
393
397
-`advert` - Uplink only this node's own advert packets (self-originated)
394
398
-`off` - Disable TX packet uplinking
395
399
-`set mqtt.interval <minutes>` - Set status publish interval (1-60 minutes)
400
+
-`set mqtt.ntp <hostname>` - Set custom NTP server (validated with immediate sync); `none` reverts to default
396
401
-`set mqtt.owner <64-hex-char-public-key>` - Set owner public key
397
402
-`set mqtt.email <email>` - Set owner email address
398
403
@@ -607,8 +612,13 @@ Minimal raw packet data for map integration.
607
612
- Automatic reconnection with exponential backoff
608
613
609
614
### NTP Time Synchronization
610
-
- Automatic time synchronization with NTP servers
611
-
- Periodic time updates (every hour)
615
+
- Automatic time synchronization with NTP servers (required for JWT authentication)
- Custom primary via `set mqtt.ntp <hostname>`; `set mqtt.ntp none` reverts to default
618
+
-`set mqtt.ntp` runs an immediate sync (primary only, so a typo fails fast) when WiFi is connected and the bridge is running
619
+
-`get mqtt.ntp` returns the effective primary hostname
620
+
-`get mqtt.ntp.diag` probes every configured server (primary + fallbacks) for connectivity and reports each server's time without changing the system clock — a pure diagnostic
621
+
- Periodic time updates (every hour) on the effective primary only
Copy file name to clipboardExpand all lines: docs/cli_commands.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1076,6 +1076,33 @@ region save
1076
1076
1077
1077
---
1078
1078
1079
+
#### View or change the NTP server (MQTT observer only)
1080
+
**Usage:**
1081
+
-`get mqtt.ntp`
1082
+
-`set mqtt.ntp <hostname>`
1083
+
-`set mqtt.ntp none`
1084
+
1085
+
**Description:** Sets the primary NTP server used for clock sync (required for JWT MQTT auth). On `set`, the device attempts an immediate sync of the just-configured server (primary only, so a typo fails fast) when WiFi is connected and the MQTT bridge is running.
1086
+
1087
+
**Fallbacks:** If the primary fails, the firmware tries `pool.ntp.org`, `time.google.com`, `time.cloudflare.com`, `time.aws.com`, and `time.nist.gov` in order (skipping duplicates).
1088
+
1089
+
**Default:**`pool.ntp.org` (when unset or `none`)
1090
+
1091
+
---
1092
+
1093
+
#### Diagnose NTP server connectivity (MQTT observer only)
1094
+
**Usage:**
1095
+
-`get mqtt.ntp.diag`
1096
+
1097
+
**Description:** Probes every configured NTP server (the custom primary, if set, plus the built-in fallbacks) and reports whether each responds. This is a pure connectivity diagnostic — it does **not** change the system clock.
1098
+
1099
+
-**Serial console:** prints a detailed table with each server's reported UTC time (or `FAIL`).
1100
+
-**Over LoRa:** returns a compact `<server> ok|fail` list, one per line.
1101
+
1102
+
Requires WiFi connected and the MQTT bridge running.
1103
+
1104
+
---
1105
+
1079
1106
#### View or change the speed of the bridge (RS-232 only)
0 commit comments