© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
{
"DevEui": "a84041000181bf255",
"FPort": 2,
"DataRate": 0,
"Frequency": 904500000,
"Gateways": [
{
"GatewayEui": "80029cffXXXXXXXX",
"Snr": 12.25,
"Rssi": -47
}
],
"Timestamp": "2020-12-14T08:23:56Z",
}
}
}
4.
Choose
Create
to save the event.
5.
Navigate to the AWS IoT console, choose
Test
on the navigation pane, and select
MQTT client
.
6.
Configure the MQTT client to subscribe to
#
(all topics).
7.
Click on
Test
in the Lambda function page to generate the test event you just created.
Verify the published data in the AWS IoT Core MQTT Test client by following these steps:
1.
Open another window.
2.
Go to AWS IoT Console, select
Test
, under
Subscription Topic
enter
#
, and
Select
to subscribe to topic.
The output should look similar to this:
8.3 Creating the Destination Rule
In this step, you create the IoT rule that forwards the device payload to your application. This rule is associated
with the destination created earlier in
Adding an IAM Role for the AWS IoT Core for LoRaWAN Destination
To create the destination rule, follow these steps:
1.
Navigate to the
2.
In the navigation pane, choose
Act
. Then, choose
Rules
.
3.
On the Rules page, choose
Create
.
4.
On the
Create a rule
page, for
Name
, enter
LoRaWANRouting
. For
Description
, enter a description of your
choice. Note the name of your rule. The information will be needed when you provision devices to run on
AWS IoT Core for LoRaWAN.
5.
Leave the default Rule query statement: ‘
SELECT * FROM 'iot/topic
' unchanged. This query has no effect
at this time, as traffic is currently forwarded to the rules engine based on the destination.