Create & define your thing in AWS IoT console
- How to configure AWS IoT
- How to test it
How to configure AWS IoT
Give a name for your thing.
If done, your will see the detail of your certificate like:
Download your certificates, active it, and then attach a policy.
If you don't have any policy, you must create one for your thing.
Click Create new policy button.
How to test it
Broker address is your endpoint.
In Step 4. you need to specify the path of root CA file, client certificate file and private key file you created before.
Click apply and ok to save your change
BTW, if you don't know your thing's app endpoint, you can go to Registry\Your thing\Activity\MQTT Client\
Configure SSL\TLS:
- Enable SSL
- Choose Self signed certificates option
- Check PEM Formatted
- Specified the path of certificates
Click apply and ok to save your change
Connect your device
Specified a topic you want to subscribe
In the publish page: specify a topic and a message you want to send.
And then publish it.
If everything is ok, you will see the message in subscribe page like
留言
張貼留言