-
Notifications
You must be signed in to change notification settings - Fork 38
Description
I am trying to send telemetry data from an IoT energy meter to ThingsBoard using HTTP POST or MQTT, but no data is received.
I tested the ThingsBoard example code (see below) in my command prompt, and it works correctly.
Sending data to a webhook from the device works fine.
When pointing the device directly to ThingsBoard, no telemetry is received.
Device Configuration:
Protocol: HTTP POST (Single Payload Variables)
Enable HTTPS: [✓/✗]
Device ID: 1
Server: demo.thingsboard.io
Path: /api/v1/JW8SEn60vBqRdvkdVUcT/telemetry
Port: 8080
Device Payload Example:
{
"id": "12345678901234567890123",
"pa": "-0.07",
"pb": "-0.03",
"pc": "-0.03",
"pt": "-0.07",
"qa": "-0.07",
"qb": "-0.03",
"qc": "-0.03",
"qt": "-0.07",
...
"rssi_wifi": "-46",
"rssi_gsm": "-999"
}
ThingsBoard Test Command (works in CMD):
curl -v -X POST http://demo.thingsboard.io/api/v1/8MJRpf5LBbZ3zFLk89FH/telemetry
--header "Content-Type:application/json"
--data "{temperature:25}"
Expected Behavior:
Device data should appear in ThingsBoard dashboard.
Observed Behavior:
No data is received in ThingsBoard.
Additional Notes:
HTTP POST and MQTT tested; same issue.
Webhook test confirms device can send data correctly.