- Open the aliyun IoT website
- Create a product if you don't have any products
- Add devices under the product
- Now you have following
important
data which we will use them later
- ProductKey
- DeviceName
- DeviceSecret
they need to be fill in the PM4 mqtt settings as
-
input any client id you want in the programming, for example "12345" in our example.
-
please choose
Auto
for client id, PM4 will complete the Ali policy for the client id automatically -
please choose
Auto
for the username as well, PM4 will setup the required username by Ali policy -
the password will be genreated automacally by using
hmacsha1
by Ali policy
OK. now you can be connected. Next topic we will focus on the Pub/Sub