count
Count Messages are sent everytime an asset has counted a new item.
less than a minute
Topic
MQTT: ia/<customerID>/<location>/<AssetID>/count
For Kafka just switch the / character with a .
Usage
A count message is send everytime an asset has counted a new item.
Content
| key | data type | description |
|---|---|---|
timestamp_ms | int64 | unix timestamp of message creation |
count | int64 | amount of items counted |
scrap | int64 | optional amount of defective items. In unset 0 is assumed |
JSON
Examples
One item was counted and there was no scrap:
{
"timestamp_ms":1589788888888,
"count":1,
"scrap":0
}
Ten items where counted and there was five scrap:
{
"timestamp_ms":1589788888888,
"count":10,
"scrap":5
}
Producers
- Typically Node-RED
Consumers
Last modified February 17, 2023: update (#208) (ea731fc)