5) Connect your devices to AWS IoT Cloud
Start connect to AWS Cloud
/etc/init.d/gl_mqtt start
Restart the mqtt services if its process is running.
/etc/init.d/gl_mqtt restart
Check mqtt process status
ps | grep gl_mqtt
4. MQTT Communication Testing
Test->Subscribe to a topic
The subscription and publish topics in glconfig file:
option sub_topic '/a1rLNyG2VK5/mqtt_demo/user/get'
option pub_topic '/sys/a1rLNyG2VK5/mqtt_demo/thing/event/property/post'
So the Subscription and Publish topic in AWS IoT Cloud shall be
exchanged: