state
State messages are sent every time an asset changes status.
less than a minute
Topic
MQTT: ia/<customerID>/<location>/<AssetID>/state
For Kafka just switch the / character with a .
Usage
A message is sent here each time the asset changes status. Subsequent changes are not possible. Different statuses can also be process steps, such as “setup”, “post-processing”, etc. You can find a list of all supported states here.
Content
| key | data type | description |
|---|---|---|
state | uint32 | value of the state according to the link above |
timestamp_ms | uint64 | unix timestamp of message creation |
JSON
Example
The asset has a state of 10000, which means it is actively producing.
{
"timestamp_ms":1589788888888,
"state":10000
}
Producers
- Typically Node-RED
Consumers
Last modified February 17, 2023: update (#208) (ea731fc)