In this guide, it is assumed that you are familiar with WICED SDK. You do not need to be a WICED master, but if you do not know these things, please check Type1LD Evaluation Board Quick Start Guide before moving forward.
Type1LD AWS IoT Core Quick Start Guide 3. Setting up AWS IoT Core A. Visit AWS IoT Core Console and select Manage - Things from the left menu, then click Register a thing button. B. Click Create a single thing button.
Page 6
Type1LD AWS IoT Core Quick Start Guide D. Click Create certificate button E. Download all of files and save them in a safe place. Make sure that you download private key and public key as they cannot be retrieved after you close this page.
Page 7
Type1LD AWS IoT Core Quick Start Guide G. After making sure you have downloaded private key and public key (and certificate and Amazon root CA), scroll down and click Activate button, then click Done button. H. Select Secure - Policies from left menu and click Create policy button.
Page 8
Type1LD AWS IoT Core Quick Start Guide Type “iot:*” in the Action filed, “*” in the Resource ARN field, check Allow and click Create button. Click Secure - Certificates from left menu then click three dots menu on your certificate, and then click Attach policy.
Type1LD AWS IoT Core Quick Start Guide 4. Setting up Certificate Files for WICED You have module certificate and Amazon certificate in previous section “3. Setting up AWS IoT Core”. Rename these files to fit with WICED configuration and place them in the appropriate folder as below.
Type1LD AWS IoT Core Quick Start Guide 6. Running Applications 6.1. Running Publisher Application This is Wirelss Wall Switch example which publishes messages as “WICED_BULB” topic when you push SW1. Open WICED IDE Open 43xxx_Wi-Fi\apps\demo\aws\iot\pub_sub\publisher\publisher.c and update the endpoint with yours.
Page 11
Type1LD AWS IoT Core Quick Start Guide Click New Make Target button and create new Make Target as below demo.aws.iot.pub_sub.publisher-MurataType1LD download download_apps run Double click “clean” from the Make Target to make sure you will have the latest files included.
Page 12
Type1LD AWS IoT Core Quick Start Guide Visit AWS IoT Core Console and select Test from the left menu, then type “WICED_BULB” in the Subscripton topic field, then click Subscribe to topic button. Push SW1 on 1LD EVB. You will see “LIGHT ON”/”LIGHT OFF” messages on your browser.
Type1LD AWS IoT Core Quick Start Guide 6.2. Running Subscriber Application This is Wirelss Light Buld example which subscribes “WICED_BULB” topic and turn on/off LED1. Open WICED IDE Open 43xxx_Wi-Fi\apps\demo\aws\iot\pub_sub\subscriber\subscriber.c and update the endpoint with yours. If you do not know your endpoint, please check “5. Checking Your AWS Endpoint”.
Page 14
Type1LD AWS IoT Core Quick Start Guide Click New Make Target button and create new Make Target as below demo.aws.iot.pub_sub.subscriber-MurataType1LD download download_apps run Double click “clean” from the Make Target to make sure you will have the latest files included.
Page 15
Type1LD AWS IoT Core Quick Start Guide Visit AWS IoT Core Console and select Test from the left menu, then click Publish to a topic. Type “WICED_BULB” in the topic field and “LIGHT ON” in the message field, then click Publish to topic button.
Type1LD AWS IoT Core Quick Start Guide 6.3. Running AWS Shadow Application This is Wirelss Light Buld example which has Shadow on AWS IoT and turn on/off LED1 with WiFi initialization steps as SoftAP. Open WICED IDE Open 43xxx_Wi-Fi\apps\demo\aws\iot\shadow\thing_shadow\shadow.c and update the endpoint with yours.
Page 17
Type1LD AWS IoT Core Quick Start Guide Click New Make Target button and create new Make Target as below demo.aws.iot.shadow.thing_shadow-MurataType1LD download download_apps run M) Double click the Make Target you just created. While you are waiting the build to complete, open your appropriate COM port with terminal tool such as TeraTerm and set baud rate as 115200bps Wait for a while to complete the build, then you will see below.
Page 18
Type1LD AWS IoT Core Quick Start Guide Open the web browser and access the URL http://192.168.0.1 Type “testThing” in the Thing Name filed and click Save Settings button. Thing Name must match with the name you created on AWS IoT Core Console.
Page 19
Type1LD AWS IoT Core Quick Start Guide Click Wi-Fi Setup > button, then select SSID of your access point and type the password. Click Connect button. 1LD will restart. Once 1LD is restarted, you shall see the below Note) In some environment, Chrome fails uploading certificate and private key in step I). If you see this...
Page 20
Type1LD AWS IoT Core Quick Start Guide M) Visit AWS IoT Core Console and select Manage - Things from the left menu, then click testThing. You will see below if everything is going well. Click Edit to update 1LD status.
Page 21
Type1LD AWS IoT Core Quick Start Guide You will see Received Payload message on your Tera Term and LED1 on EVB turned on. You can send OFF as desired status to turn off the LED. LED1 (END) Page 21...
Need help?
Do you have a question about the Type1LD and is the answer not in the manual?
Questions and answers