Publish Material Movements
Overview
TilliT can receive material movement data from your equipment via MQTT. Material movements track the consumption, production, and transfer of materials throughout your production process. This includes raw materials used, finished goods produced, inventory transfers between locations, and any other material transactions. Material movements are sent to TilliT from your edge devices and automatically update inventory levels.
Payload
[
{
id?: number;
timestamp: Date;
quantity: number | null;
unitOfMeasure: string;
materialMovementTypeKey: string; // find this in your Material Movement config in DO
inventoryKey: string;
orderId?: number;
orderNumber?: string;
orderOperation?: string;
keyAttributes?: {[key: string]: string};
attributes?: {[key: string]: string};
contains?: string[];
assetId?: number;
assetName?: string;
fromAssetId?: number;
fromAssetName?: string;
toAssetId?: number;
toAssetName?: string;
materialExternalId: string; // find this in your Materials config in DO
bestBeforeDate?: string | Date;
manufacturingDate?: string | Date;
}
]
Sending to the MQTT Broker
The topic to publish on is constructed as per the following, replacing ENV, TENANT and THINGNAME with those that apply for you
$aws/rules/`${ENV_NAME}_edge_data/${tenant}/${thingId}/events
e.g $aws/rules/production_edge_data/bottling/TillitEdge-717503/events
$aws/rules/stage_edge_data/bakery/TillitEdge-a0163b/eventsYou can find your thingName contained in the same file as the certificates supplied to you. You can also contact support to track down the thingName for you.
Last updated