MeshCore icon

MeshCore

Interact with a MeshCore device over TCP/WiFi

Diagnostic → Get Telemetry

AI-generated

Summary

Queries a MeshCore device for its own telemetry data (battery and sensor readings) without requiring radio traffic or a contact key.

Inputs

  • extraTimeoutMs — Extra time to wait on top of the device's own airtime estimate. That estimate is computed for the outbound packet, but a trace grows a hash and an SNR byte at every hop, so the reply takes longer than it predicts — raise this on long or slow paths.

Output shape

a single item containing the device's battery voltage and parsed sensor data (Cayenne LPP format).

The node uses a custom implementation (getSelfTelemetry) because meshcore.js cannot request this telemetry via sendCommandSendTelemetryReq (which requires a public key). The firmware answers with a 4-byte opcode plus reserved bytes, no contact, and no login.

Examples

Example 1: Monitor battery level and temperature of a repeater node.

Use the default timeout (or a longer value if the device is slow), and connect using the MeshCore credential.

Links

Discussion