2 minute read
MQTT: ia/<customerID>/<location>/<AssetID>/uniqueProduct
For Kafka just switch the /
character with a .
A message is sent here each time a product has been produced or modified. A modification can take place, for example, due to a downstream quality control.
There are two cases of when to send a message under the uniqueProduct topic:
key | data type | description |
---|---|---|
begin_timestamp_ms | int64 | unix timestamp of start time |
end_timestamp_ms | int64 | unix timestamp of completion time |
product_id | string | product ID of the currently produced product |
isScrap | bool | optional information whether the current product is of poor quality and will be sorted out. Is considered false if not specified. |
uniqueProductAlternativeID | string | alternative ID of the product |
The processing of product “Beilinger 30x15” with the AID 216381 started and ended at the designated timestamps. It is of low quality and due to be scrapped.
{
"begin_timestamp_ms":1589788888888,
"end_timestamp_ms":1589788893729,
"product_id":"Beilinger 30x15",
"isScrap":"true",
"uniqueProductAlternativeID":"216381"
}