Deepstream-test5-app can be configured to work as message consumer for cloud messages. After parsing the received message and based on the content of the message specific action(s) can be triggered. e.g. appCtx, which holds the smart record context, is passed as an argument in start_cloud_to_device_messaging() that can be used to trigger start/stop of smart record.
By default, application prints the received messages to console. This is just to demonstrate the use case of receiving the messages from the server.
User need to implement the custom logic to work on the received messages.
To subscribe to cloud messages configure the [message-consumer] group(s) accordingly.