|
|
1. Open the aliyun IoT website
|
|
|
### 1. Open the aliyun IoT website
|
|
|
|
|
|
[Open Link](https://iot.console.aliyun.com/prudcts)
|
|
|
|
|
|
2. Create a product if you don't have any products
|
|
|
### 2. Create a product if you don't have any products
|
|
|
|
|
|

|
|
|
|
|
|
3. Add devices under the product
|
|
|
### 3. Add devices under the product
|
|
|
|
|
|

|
|
|
|
|
|
4. Now you have following `important` data which we will use them later
|
|
|
### 4. Now you have following `important` data which we will use them later
|
|
|
|
|
|
* ProductKey
|
|
|
* DeviceName
|
... | ... | @@ -22,14 +22,35 @@ they need to be fill in the PM4 mqtt settings as |
|
|
|
|
|

|
|
|
|
|
|
5. input any client id you want in the programming, for example "12345" in our example.
|
|
|
### 5. input any client id you want in the programming
|
|
|
|
|
|
6. please choose `Auto` for client id, PM4 will complete the Ali policy for the client id automatically
|
|
|
for example "12345" in our case.
|
|
|
|
|
|
7. please choose `Auto` for the username as well, PM4 will setup the required username by Ali policy
|
|
|
### 6. please choose `Auto` for client id, PM4 will complete the Ali policy for the client id automatically
|
|
|
|
|
|
8. the password will be genreated automacally by using `hmacsha1` by Ali policy
|
|
|
### 7. please choose `Auto` for the username as well, PM4 will setup the required username by Ali policy
|
|
|
|
|
|
### 8. 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
|
|
|
|
|
|
## How to use Pub/Sub topics |
|
|
# How to use Pub/Sub topics
|
|
|
|
|
|
### 1. edit the product details in Ali Iot Website
|
|
|
|
|
|

|
|
|
|
|
|
### 2. you can add customized topic by the naming rules of Ali
|
|
|
|
|
|
### 3. now you can see the topics are in the device's topic details
|
|
|

|
|
|
|
|
|
### 4. in the pm4, add those topics need to sub/pub
|
|
|
|
|
|

|
|
|

|
|
|
|
|
|
### 5. users can write those listen and send macros to pub and sub the topics.
|
|
|
|
|
|

|
|
|
 |
|
|
\ No newline at end of file |