Aller au contenu principal
Version: Next

Telemetry MQTT

Device and position telemetry ingested over MQTT (not HTTP). Uses the same broker gate as SOS: MQTT_SOS_BROKER_URL must be non-empty. Set the legacy flat topic with MQTT_TEL_TOPIC (default tel/data). The API derives a prefix from that value (tel/data → prefix tel), then subscribes to the per-user wildcard tel/+/data and to the flat legacy topic tel/data so older publishers keep working. Clients should publish to tel/{external_user_id}/data where {external_user_id} is sdk_users.external_user_id encoded as a single URL path segment (same encoding as sos/events/{external_user_id}). JSON body matches SOSMQTTAlert / SDKTelemetryWriteRequest (required timestamp, latitude, longitude, altitude). QoS 1; retain false.