Best MQTT Rules engine built-in with Thingsup IoT Platform with MQTT Broker. Validate and Transform your IoT data on the fly with serverless service.
MQTT Rule is a Rule defined in Thingsup to Process MQTT Message. Before setting up MQTT Rule, user need Add Device to his account. User need to provide following parameters.
User need to provide a topic on which data is incoming. For example, Test. Thingsup also support standard Wildcard subscriptions like Test/+ or Test/# or Test/+/LocationData
The "payload" object here in this code, can get changed or transformed before passing to Thingsup Actions. Also user can assign "null" to payload if he want to avoid action trigger after data validation.
// This code checks if payload is JSON and contains Location data