Used to let the device know that a user has opened the monitoring page.
This allows the device to perform an action in response.
For example the device could start publishing data more frequently.
Things5 will keep sending a message at least once every polling_interval
seconds if the user has still the monitoring page opened (device should account for a delay receiving the next message depending on the network conditions). Multiple users will generate multiple messages.
This message is sent only when the Supports realtime session notifications
flag is enabled in the machine model
Request Topic and Payload
Topic
things5-production/v1/devices/<device-id>/cmd/realtime_monitoring_req
Payload Representation
{
"request_id": "UUID",
"polling_interval": 30
}
Payload Parameters
type | desctiption | example |
---|---|---|
request_id | A unique id that identifies the request | "a7e3e4be-4350-4446-a86d-f6bc021538e8" |
polling_interval | time in seconds after which if no message from this topic is received the request is considered expired | 30 |