Skip to content

1. Applicable Scenarios

  • Write telemetry/attributes/online/offline events to Kafka, for consumption by data lake, stream computing, alarm system
  • Issue control messages via Kafka topic, implementing WritePoint / Command / RPC Receipt (Optional)

2. What You Need to Prepare

  • Kafka broker address (bootstrap.servers)
  • (Optional) TLS certificate file path (Path inside container)
  • (Optional) SASL username password and mechanism
  • Planning:
    • uplink topic naming rule
    • Partition strategy (key)
    • Whether downlink is needed (and control plane topic planning)

3. Quickest Run (Minimal Configuration)

json
{
  "connection": {
    "bootstrapServers": "127.0.0.1:9092",
    "security": { "protocol": "plaintext" }
  },
  "uplink": {
    "enabled": true,
    "telemetry": {
      "enabled": true,
      "topic": "ng.uplink.telemetry",
      "key": "{{device_id}}",
      "payload": { "mode": "envelope_json" }
    }
  },
  "downlink": { "enabled": false }
}

Verification:

  • Consume ng.uplink.telemetry, see if messages are produced (Suggest verifying with single device first)

Downlink details: Kafka Downlink


4. Navigation (Recommend reading in order)

Released under the Apache License 2.0.