mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-08-07 09:13:04 +02:00
Add clearer MQTT topics and payload shapes
This commit is contained in:
@@ -173,11 +173,23 @@ export function SettingsMqttSection({
|
|||||||
value={mqttTopicPrefix}
|
value={mqttTopicPrefix}
|
||||||
onChange={(e) => setMqttTopicPrefix(e.target.value)}
|
onChange={(e) => setMqttTopicPrefix(e.target.value)}
|
||||||
/>
|
/>
|
||||||
<p className="text-xs text-muted-foreground">
|
<div className="text-xs text-muted-foreground space-y-2">
|
||||||
Topics: {mqttTopicPrefix || 'meshcore'}/dm:<key>, {mqttTopicPrefix || 'meshcore'}
|
<div>
|
||||||
/gm:<key>, {mqttTopicPrefix || 'meshcore'}
|
<p className="font-medium">Decrypted messages <span className="font-mono font-normal opacity-75">{'{'}id, type, conversation_key, text, sender_timestamp, received_at, paths, outgoing, acked{'}'}</span></p>
|
||||||
/raw/...
|
<div className="font-mono ml-2 space-y-0.5">
|
||||||
</p>
|
<div>{mqttTopicPrefix || 'meshcore'}/dm:<contact_key></div>
|
||||||
|
<div>{mqttTopicPrefix || 'meshcore'}/gm:<channel_key></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<p className="font-medium">Raw packets <span className="font-mono font-normal opacity-75">{'{'}id, observation_id, timestamp, data, payload_type, snr, rssi, decrypted, decrypted_info{'}'}</span></p>
|
||||||
|
<div className="font-mono ml-2 space-y-0.5">
|
||||||
|
<div>{mqttTopicPrefix || 'meshcore'}/raw/dm:<contact_key></div>
|
||||||
|
<div>{mqttTopicPrefix || 'meshcore'}/raw/gm:<channel_key></div>
|
||||||
|
<div>{mqttTopicPrefix || 'meshcore'}/raw/unrouted</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Separator />
|
<Separator />
|
||||||
|
|||||||
Reference in New Issue
Block a user