Meshtastic channel URLs & Store & Forward¶
Developer reference for Meshtastic config apply, admin, channel URLs, Store & Forward, remote admin, last-heard, or static GPS. Repo-wide rules live in AGENTS.md.
- Config apply (Radio / Modules / Security): Firmware
setConfig/setModuleConfigreplace full protobuf structs. UI must merge cached device slices with form edits viameshtasticConfigApply.ts(mergeMeshtasticConfigApplyValue,buildMeshtasticModuleApplyValue); slices live indeviceStore.meshtasticConfigSlicesandmoduleConfigs(PacketRouter + runtime lifecycle wire effects). Module-specific validation:meshtasticMqttModuleApply.ts,meshtasticSerialModuleApply.ts. Apply failures surfaceclientNotificationtext within 8s (meshtasticClientNotification.ts→formatMeshtasticModuleApplyError); inline status viaConfigApplyNotice.tsx. Forms re-sync after reboot viauseSyncFormFromConfig. - Administration tab:
AdminPanel.tsx— device commands and Danger Zone (reboot, shutdown, factory reset, NodeDB reset, OTA/DFU); sharedConfirmModal.tsxwith Radio/Modules destructive flows. Local-only OTA/DFU disabled when Configure node targets a remote node. - Key verification:
lib/meshtastic/meshtasticKeyVerification.ts+stores/keyVerificationStore.ts; UIKeyVerificationDialog.tsx(lazy from App). Firmware 2.7+ handshake; node-detail Verify key… / Key verified badge. Operator guide:meshtastic.md— Key verification. - Remote shell:
lib/meshtastic/remoteShell.ts/remoteShellSession.ts+stores/remoteShellStore.ts; Administration Remote shell (Meshtastic) (not Reticulum rnsh). Idle close ~10 min; transcript in-memory only. Operator guide:meshtastic.md— Remote shell. - XMODEM:
lib/meshtastic/meshtasticXmodemTransfer.ts(+xmodemFilenamehelpers); Radio XMODEM file transfer — local USB/serial only (hidden for remote Configure node). Operator guide:meshtastic.md— XMODEM. - Firmware lockdown:
lib/meshtastic/meshtasticLockdown.ts; Radio Firmware Lockdown (provision / unlock / lock / disable). Operator guide:meshtastic.md— Firmware lockdown. - Remote admin module snapshot:
meshtasticRemoteAdminModuleFetches.ts— canonical list/count ofModuleConfigreads during remote snapshot (REMOTE_ADMIN_MODULE_CONFIG_FETCHES). - Channel URLs:
src/shared/meshtasticUrlEncoder.ts(parse/generate),src/shared/meshtasticChannelApply.ts(replace vs add-only apply); Radio panel UI; Meshtastic-only. - S&F chat history:
src/renderer/lib/meshtasticBacklogUtils.ts—CLIENT_HISTORYon primary router heartbeat after RF configure (auto: 50-msg cap, 120 min window cap, 15 min per-server cooldown, 5 min offline gate;storeForwardAutoFetchHistoryopt-out;storeForwardHistoryProfile: 'conservative' | 'aggressive'indefaultAppSettings.tstunes offline gate / cooldown / cap aggressiveness; manual catch-up in Chat). Protobuf decode for replayed text,via_store_forwardon messages; do not await SDK queue for history (async replay). - Delivery proof / SF++:
MeshtasticProtocolemitsmeshtastic_routing_ackfromROUTING_APP(includingackProofStatus);meshtasticRoutingAckSideEffects.tsstampsMessageRecord.ackProofStatus. Store & Forward++ module frames updatesfppPhaseviameshtasticStoreForwardPlusPlus.tsinmeshtasticModulePortSideEffects. ChatMessageStatusBadgeprefers proof / SF++ badges when present (meshtasticAckProof.ts). - Channel security lock: Chat Meshtastic pills and Radio channel rows share
channelSecurityLevel+ChannelSecurityBadges— official four-state composite lock (green closed / orange open / red open / red open + warning) from livechannelConfigs. Precise location meanspositionPrecision >= 32; MQTT uplink only escalates with open + precise location. - MQTT broker clientId:
src/main/mqtt-broker-client-id.ts— stable per-install IDs inapp_settings(meshtasticMqttClientId,meshcoreMqttClientId); MeshCore LetsMeshv1_username unchanged as clientId. - PKC remote admin (firmware 2.5+):
meshtasticRemoteAdmin.ts— PKI-wrappedAdminMessageviaMeshDevice.sendRaw()(pkiEncrypted: true, channel omitted on wire); session passkeys (~300s); tab-scoped snapshot routes inmeshtasticRemoteAdminSnapshot.ts(Channels-first LoRa load). Per-node keys:meshtasticRemoteAdminKeyStorage.ts(meshtasticRemoteAdminKey:<nodeNum>inapp_settings; base64 /base64:/ 64-char hex paste). Dest public key: NodeDB hex first, stored admin-key base64 fallback.useMeshtasticRuntime:configureTargetNodeNum,remoteConfigSnapshot,runRemoteAdminOp(errors → UI + toast); serialize admin reads with S&F (remoteAdminReadsActiveCountinmeshtasticBacklogUtils.ts). Requires connected local radio (MQTT-only cannot admin). UI:ConfigureNodeSelector.tsx; NodeDetailModal admin key + Configure node remotely; SecurityPanel Copy public key. Persist last target inmeshtasticConfigureTargetNodeNum. Gate withhasRemoteAdmin. Legacy admin channel (PSK +"admin") out of scope. - Meshtastic last heard:
meshtasticLastHeard.ts— bumplast_heardon live RF packets (not only text);computeNodeInfoLastHeardMsmerges radio NodeDB timestamps with client-side values (max wins). Configure replay guard must apply innodeStore(upsertNode,updatePosition,meshtasticLastHeardPatch) viameshtasticConfigurePhase.ts, not only inmeshtasticNodeSideEffects— PacketRouter updates the store before side effects run. Duringdevice.configure(), the Meshtastic SDK replays NodeDB asnode_infoframes and may emit syntheticonUserPacket/onPositionPacketwithrxTime = now; guards skip those bumps. UserPacket path usesmergeMeshtasticUserPacketLastHeard(ms); NodeDB path usescomputeNodeInfoLastHeardMs(sec). Protocol decode must usemeshtasticPacketRxTimeMs—@meshtastic/corePacketMetadata.rxTimeis already aDate(ms); neverrxTime * 1000(Date×1000 → ~1e15; regression lock inMeshtasticProtocol.test.tsDate-shaped rxTime + source-policymeshtastic-protocol-rxtime-via-helper). SQLite storeslast_heardas unix seconds;meshtasticDbCacheHydration.tsnormalizes to ms on hydrate (normalizeLastHeardMs); stale/online checks useeffectiveLastHeardMs. BLE configure uses a stall watchdog (MESHTASTIC_BLE_CONFIGURE_TIMEOUT_MS, reset on each replayednode_info/ position / telemetry viatouchMeshtasticConfigureProgress) so large NodeDBs are not cut off mid-stream. Node list JSON export emitslast_heardas unix seconds withlast_heard_unit: 'unix_sec'. - Static GPS:
src/renderer/lib/gpsSource.ts— the active saved location (App tab Saved locations,lib/savedLocations.ts) is the static override; it syncs to self-node, map, and radiosetPosition. Only a radio fix from this session counts asdevicesource; static coordinates echoed back by the radio do not. Diagnostics trust rules:diagnostics.md. - Firmware 2.7 / 2.8 parity (#1148): LoRa Apply is gated until the
loraslice hydrates. Long names are capped at 24 UTF-8 bytes (src/shared/meshtasticLongNameLimits.ts). Firmware 2.8FromRadio.region_presetsis decoded bylib/meshtastic/meshtasticRegionPresets.tsintomeshtasticConfigSlices.regionPresets(allowed presets, default, licensed-only per region; missing map = unrestricted; cleared on disconnect); Radio panel filters modem presets with it. Bandwidth is sent as the wire code. Node renumbering: when a node with a known public key appears under a new number,lib/meshtastic/meshtasticNodeRenumber.ts+ mainmeshtasticNodeRenumber.tsmigrate messages and remote-admin keys only if the new number equalscrc32(public key)(src/shared/meshtasticNodeNumFromPublicKey.ts) and the destination row has no different key. Own-node number history is keyed by the radio's public key and restored from SQLite at startup. - Firmware 2.8 inbound decode (#1146):
patches/@jsr__meshtastic__core@2.6.6.patchignores new 2.8 ports (node status, port 36) andregionPresetsframes, warns once on unknown ones, and guards each decoded frame so one bad packet cannot end thefromDevicestream; any pipe failure triggers an immediate reconnect. - Mesh Beacon module (2.8):
ModuleConfig.MeshBeaconConfiglives inmoduleConfigs.meshBeaconand is edited inMeshBeaconModuleSection.tsx(flags bitfield, 60-byte message, interval ≥ 3600 s, channel/region/preset/slot offer, up to 8broadcastTargets); helpers inlib/meshtastic/meshBeaconConfig.ts.MESH_BEACON_APP(port 37) payloads are decoded bymeshBeaconCodec.ts(schema rebuilt from the upstream descriptor because the package does not export it) intomeshtasticRuntime.meshBeacons.MeshBeaconHeardList.tsxoffers Join channel (first free secondary slot, never the primary) and Use radio settings (meshBeaconJoin.tsplanMeshBeaconLora: never changes an already-set region). Join is hidden for remote Configure node targets. - Status Message module (2.8):
moduleConfigs.statusmessage.nodeStatusis edited in ModulePanel; inboundNODE_STATUS_APP(port 36) fillsmeshtasticRuntime.nodeStatuses, shown in NodeDetailModal whenhasNodeStatusMessage. Other 2.8 ports without a published payload schema usable from the package entrypoint (paging, S&F++, LoRaWAN bridge, Reticulum tunnel, LoRa OTA, group alarm) stay label-only inUNTYPED_MODULE_PORTS. Note:@meshtastic/protobufs2.8.2 shipslib/lorawan_bridge_pb.ts(LoRaWANBridge) but does not re-export it frommod.ts, so Mesh Client cannot import a stable schema yet — keep LoRaWAN bridge label-only until upstream exports it. Paging still has noPagingPacketfile. Cayenne remains in that untyped port set for chat labeling, but inbound Cayenne LPP is decoded intocayenneTelemetryStoreand charted on Device → Telemetry viaCayenneTelemetrySection(hasCayenneTelemetry, Meshtastic only); environment-shaped fields are also written toenvironmentTelemetryStore. - Geofenced waypoints (2.8):
Waypointwire fieldsgeofenceRadius,boundingBox,notifyOnEnter/notifyOnExit/notifyFavoritesOnlyround-trip throughMeshWaypoint/WaypointEvent,WaypointEditorDialog, RF encode inuseMeshtasticRuntime/MeshtasticProtocol, MQTTpublishWaypoint, and map Circle/Rectangle overlays. Device-side enter/exit alerts are firmware behavior; Mesh Client does not yet run a local geofence watcher. - Declarative extra config fields: Less common Radio / Security / Module fields (buzzer mode, position flags, GPS / I2S / INA pins, static IPv4, rsyslog, ignore list, FEM LNA, packet signature policy, Audio module, detection trigger, Pax thresholds, health telemetry, range-test clear-on-reboot) are specs in
lib/meshtastic/meshtasticExtraConfigFields.ts, held byuseMeshtasticExtraConfigFieldsand rendered byMeshtasticExtraConfigField.tsx. Each section spreads the hook'sresult.overridesinto its apply payload; a parse failure (bad IPv4, out-of-range number, bad node id) blocks the apply. IPv4 is a little-endian fixed32 (first octet in the low byte); nested keys such asipv4Config.ipmerge into a copy of the device sub-message. Position applies writepositionBroadcastSmartEnabled(the proto field), and map reports carrymapReportSettings.shouldReportLocation. - Protobufs 2.8.3 review (npm bump from 2.8.2): schema drift for this bump is in
field_metadata.sensitive,config.proto,mesh.proto,clientonly.proto,interdevice.proto,serial_hal.proto,telemetry.proto,atak.protoand docs-only labels elsewhere. How each lands here: field_metadata.sensitive(new): upstream marks channelpsk, MQTT / Wi-Fi passwords,SecurityConfig.private_key,BluetoothConfig.fixed_pin,device_ui.pin_code,connection_status.pinandAdminMessage.lockdown_auth.passphraseas secrets that apps should mask by default and keep out of logs/exports. MQTT password, Wi-Fi PSK, lockdown passphrase and the Reticulum interface passphrase were already masked; the Radio panel's BLE pairing PIN and the channel-key editors (Meshtastic base64 PSK, MeshCore hex secret) now render as password inputs with an explicit Show/Hide. The config-import debug log no longer dumps the parsed backup (it carries channel PSKs); only its top-level key count is logged.- New config fields round-trip:
LoRaConfig.transparent_mode, anduse_aead's documented override ofpacket_signature_policy, are not edited in the UI but survive an Apply becausemergeMeshtasticConfigApplyValuespreads the live device slice (locked bymeshtasticConfigApply.test.ts).transparent_modeis deliberately not exposed: it turns the radio into a raw modem and only helps a client that sends pre-encrypted frames, which Mesh Client does not. - Enum additions are descriptor-driven:
FEM_LNA_Mode.AUTOappears automatically in the FEM LNA select (protobufEnumOptions), andHardwareModel.VIRTUAL_NODE(254) gets a curated label while newer values keep the generated-name fallback.RegionCode.ANZis renamed upstream to "Australia / Brazil / New Zealand"; the panel shows the enum-name label (radioPanel.regions.ANZ.label), not the proto label text. ClientNotification.type+ 49 notification types: we keep consuming the firmwaremessagetext (apply-error surface) and the key-verification payload branches;typeis not localized client-side, so unknown numeric types are harmless.- Reviewed, no client surface (inert):
DeviceMetadata.ble_address/bootloader_version(firmwareVersion / hasWifi / hasEthernet still drive the UI),InterdeviceMKDIR/RMDIR/FILE_NOT_EMPTYandSerialHalSPI_TRANSACTION(neither protocol is implemented here),TelemetrySensorType.INA228(sensor-type enum is not rendered), and ATAKVoiceProfile/VoiceProfileRequest/TakTalkRoomRequest/voice_profile_id(TAK voice profiles are out of scope;takPacketDecodeonly summarises payload kinds, so new oneof branches stay label-only).PacketSignaturePolicykeeps our own labels/description after the upstream text rewrite; the meaning still matches Compatible / Balanced / Strict. Decoded as UTF-8 text likeTEXT_MESSAGE_APPinMeshtasticProtocoland MQTT (mqtt-manager.ts) so MECP / critical alerts reach chat +useMecpAlertWatcher. Seemecp.md.
Delivery proof and Store & Forward++¶
- Outbound chat rows may carry Meshtastic-only
ackProofStatus/sfppPhaseonMessageRecord(not in the sharedMessageStatusunion). - ROUTING_APP ACKs emit
meshtastic_routing_ackwithMeshPacket.ackProofStatus;meshtasticRoutingAckSideEffectsstamps the matching message id (Data.requestId). STORE_FORWARD_PLUSPLUS_APPis decoded inmeshtasticModulePortSideEffectsviaStoreForwardPlusPlusSchemaand correlated byencapsulatedId.MessageStatusBadgeshows proven / proof-failed / relayed-unproven / SF++ routing|confirmed. Unknown enums stay neutral.