Home / DTU / HTTP posting

HTTP posting from a telematics unitNot every platform team wants a broker. HTTP posting is a valid contract - provided the retry, the authentication and the batching are written down.

MQTT gets the attention, but a large share of machine integrations end at an HTTPS endpoint: a POST with a JSON body and a bearer token. It is easy to test with curl, easy for a platform team to mock, and easy to get wrong in the retry path.

What the contract has to say

ItemWhat to write down
EndpointAbsolute URL per unit or per fleet, with the environment in the path
AuthenticationBearer token or mutual TLS; where the token is provisioned and how it is rotated
BodyOne record per POST or a batch; the timestamp field and its timezone
Success codeExactly which HTTP status counts as accepted - and what 207, 429 and 503 mean
RetryBackoff schedule, maximum attempts, and what happens to a record that never succeeds

The retry path is the whole project

A unit on a machine will hit timeouts, captive networks and 5xx answers. Without a written retry policy it either gives up silently or retries forever on a malformed record, draining the data plan. The useful behaviour: retry with backoff, keep the record in the buffer, and report the failure count so the platform can see a unit that has been unable to deliver for a day.

When HTTP is the better choice

  • The platform is a plain API behind a firewall, with no broker allowed.
  • Records arrive at intervals (every few minutes) rather than as a stream.
  • The integration team wants to test with curl before anything else exists.

When MQTT is better

A high event rate, several subscribers, or a need for session state and per-message delivery semantics. MQTT defines those; HTTP makes you invent them per project.

Next

DTU hardware · AWS IoT Core · payload contract · Azure IoT Hub.

Data sheet, interface list and a payload example on request — contact us (ralph@gz-can.com · +86 130 7692 2278).