nichjevon17
Intern
Intern
  • UID7907
  • Fans0
  • Follows0
  • Posts1
Reads:210Replies:1

[IoT PLATFORM] Connect to IoT Platform from MQTT Lens

Created#
More Posted time:Aug 28, 2019 9:39 AM
Hi Guys,


I have read the documentation the best practices of connecting to IoT Platform using MQTT.fx (https://www.alibabacloud.com/help/doc-detail/86706.htm?spm=a2c63.p38356.b99.231.51083874Up6c07)
Everythings can be filled except the clientId. What should it fill when I dont use MQTT.fx? What to be filled in MQTT Lens?
I need MQTT Lens connected at first.


Thank you

afzaalvirgoboy
Intern
Intern
  • UID6091
  • Fans0
  • Follows0
  • Posts22
1st Reply#
Posted time:Sep 1, 2019 4:40 AM
Hi,


Did you try to generate the ClientID using the button that is made available to the right? If you read the same page that you shared in this question you will find the details on how to create the ClientID,

The method to create the ClientID is, "${clientId}|securemode=3,signmethod=hmacsha1|". For each of the parts, here is the further elaboration (also found on that page).


${clientId} is a custom client ID. It can be any value within 64 characters. We recommend that you use the MAC address or SN code of the device as the value of clientId.


securemode is the security mode of the connection. If you use the TCP mode, set it as securemode=3; if you use the TLS mode, set it as securemode=2.


signmethod is the signature method that you want to use. IoT Platform supports hmacmd5 and hmacsha1.


You can use any of these values and you will be good to go. So use the MAC address of the device, set securemode=2 (always utilize SSL, you can purchase a new SSL certificate on Alibaba Cloud), and use hmacsha1.


Let me know if you require further assistance. :-)
Guest