Mount the RNWF11 Add On Board on SAME54 Xplained Pro Evaluation Kit at respective header. For more
details about the boards placement, refer Figure 6-37.
Connect the debugger USB port on the SAME54
Xplained Pro evaluation kit to computer using a micro USB cable.
Change the configuration. There are two
options to change the configuration:
Option 1: Change the configuration
manually in the code.
Open the code in MPLAB IDE v6.00 or
higher and add Home AP and device information in the application code.
In
configuration.h, add Wi-Fi configurations in
SYS_RNWF_WIFI_STA_SSID,
SYS_RNWF_WIFI_STA_PWD,
SYS_RNWF_STA_SECURITY.
In configuration.h, change the macros
SYS_RNWF_MQTT_CLIENT_ID,
SYS_RNWF_MQTT_SERVER_CERT and
SYS_RNWF_MQTT_TLS_SERVER_NAME
To get the value that needs to be set for
SYS_RNWF_MQTT_CLIENT_ID, navigate to All
devices>Things (refer Figure ).
Set the SYS_RNWF_MQTT_TLS_SERVER_NAME as the AWS Broker
name to which RNWF should connect.
The AWS demo uses Trustflex as the secure device, by default. If the user
prefers to use TrustNGo, then the macro
SYS_RNWF_TLS_ECC608_DEVTYPE must be set to
1in configuration.h.
Option 2: Change the configuration via
MCC Melody.
For more details about Wi-Fi
configurations, refer Figure 3-31.
The following fields can be
configured via MCC Wi-Fi settings:
SSID
Security Type
Passphrase
For more details about Cloud
configuration, refer Figure 3-37.
The following fields can be
configured via MCC OTA configuration settings:
Cloud URL
Cloud Port
Client ID
Publish Topic Name
Sub Topic Name
Server Certificate
Server Name
Save the changes and then build and program
the project.
Connect to the “USB to UART” COM port and
configure the serial settings as follows:
Baud – 115200
Data – 8 Bits
Parity – None
Stop – 1 Bit
Flow Control – None
The board boots up and the application
starts running. It displays Wi-Fi information, certificates on the board, Serial number of
the device, connects to Home-AP and then to AWS cloud Server. It publishes messages
periodically on a subtopic with a running counter.
To see event logs on the AWS IoT Server
Dashboard, go to “Monitor” and check for the “Messages published” increasing with time.