Connect an HTTP-polled device
Synacl polls an HTTP/REST endpoint and extracts values from the JSON response.
Protocol: http
Connection fields:
| Field | Meaning |
|---|---|
url |
Endpoint to poll |
method |
GET or POST |
pollIntervalMs |
How often to poll (ms) |
authHeader |
Optional Authorization header value |
jsonPath |
Path to the value(s) in the response |
Steps
- Add a device with protocol http and enter the endpoint and poll interval.
- Use
jsonPathto point at the field(s) to read into tags. - Add an
authHeaderif the endpoint needs a token.
Once saved, the authHeader value (and any user:password@ in the URL) is never shown again — the field reads Saved — type to replace. Editing the device leaves it alone; type a new value to replace it, or select Remove under the field to delete it. Credentials inside the URL are kept as long as you don't change the URL; if you edit the URL, re-enter them.
Frequent http/poll-error events usually mean a bad URL, auth failure, or unexpected JSON shape.
Auto-disable after repeated failures: if a poll fails 10 times in a row, Synacl stops querying the
device and marks it Polling disabled (a device/poll-disabled event is raised). Fix the cause, then
click Re-enable polling on the device page — querying resumes within about a minute. See
My device shows offline.