The demo is designed to be operational "out-of-the-box." However, please take note of the specific timing considerations mentioned below regarding the initial message publish.
Timing Considerations:
Due to the inherent behavior of tradweb server actions, the first MQTT message following the initial application publish may experience a delay of up to 2 minutes. Subsequent messages are dispatched instantly. A timer is incorporated in the demo to mitigate this delay, although its effectiveness may vary.
Client-Side Setup:
For client-side MQTT initialization, refer to the following path in the demo:
RAD_MQDemo > Interface > Mainflow > RAD_MQDemo > Init_MQ
This path will guide you through setting up the mqttSubscribe web block to connect to the server with the correct configurations.
mqttSubscribe
Server-Side Setup:
For server-side message publishing, inspect and possibly modify the wrapper function for 'MQ_Server_Publish' found at:
RAD_MQDemo > Logic > Server Actions > MQTT_Server_Publish_Wrapper
Security Considerations:
The demo includes security recommendations for both REST API calls and the secure storage of server information.
Support:
If you have any questions or encounter issues, please feel free to reach out for support.