Managing the scripts
Management of scripts for the MQTT protocol is either through the IMPACT IoT Console or through Rest API. Create, Read, Update, and Delete operations can be performed on scripts.
MQTT supports the following script types:
- Device ID mapping script - Device ID mapping script is used to get the device ID to and from the free format topics. When a device sends an uplink message for that device, the device ID is fetched and inserted using the Device ID mapping script.
- Topic and payload mapping scripts - Based on the device ID the pre-provisioned device and its make and model are retrieved from the database. Depending on the make and model the Topic and payload mapping scripts are selected to handle the payload data or a free format topic for that specific device.