• UID7907
  • Fans0
  • Follows0
  • Posts1

[IoT PLATFORM] Connect to IoT Platform from MQTT Lens

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 (
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

Latest likes:


Assistant Engineer
Assistant Engineer
  • UID6091
  • Fans2
  • Follows0
  • Posts52
1st Reply#
Posted time:Sep 1, 2019 4:40 AM

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. :-)