![Microchip Technology ATWINC 15x0 Скачать руководство пользователя страница 36](http://html1.mh-extra.com/html/microchip-technology/atwinc-15x0/atwinc-15x0_developers-manual_1785757036.webp)
Figure 5-16. Creating a Function
6.
Copy and paste the code from
lambda-function/zt-lambda-jitr/ZTLambdaJITR.py
to
the code entry area of the Lambda function.
Figure 5-17. Adding a Functional Code
7.
Save changes to the Lambda function code.
Create IoT Rules Engine
While the Lambda function performs the registration, it needs to be triggered by an event. The following
instructions creates a rule, which runs the Lambda function when a device connects for the first time.
1.
https://console.aws.amazon.com/iot
2.
Go to the 'Act' section from the menu.
3.
Click the 'Create a rule' button.
4.
Fill in the following fields:
– Name: ZeroTouchJustInTimeRegistration
– SQL version: 2016-03-23
– Rule query statement: Select * FROM '$aws/events/certificates/registered/#'
– Condition:
ATWINC15x0 Smart Device Kit
AWS Setup
©
2019 Microchip Technology Inc.
User Guide
DS50002885A-page 36