Skip to content

[PC-1451] Max Carrier LoRaWAN tutorial update #1543

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,19 +106,19 @@ Upload the sketch, open the Serial Monitor and wait for the firmware update to f

Device provisioning is a process comparable to bank card numbering. Let's think about bank cards; bank cards numbers start with a six-digit vendor ID number that indicates who allocated and controls the card's security; the remaining digits are unique numbers associated with a specific card. Devices with LoRa® and LoRaWAN® capabilities have a similar system; the **Join Server Unique Identifier** (usually referred to as `JoinEUI`) is a number that manages the security and authorizes the device in a network, while the **Device Unique Identifier** (usually referred to as `DevEUI`) is a unique number that identifies the device. The `JoinEUI` and `DevEUI` are required to send information to TTN; the `JoinEUI` number is provided by the network (in this case TTN) while the `DevEUI` is provided by the manufacturer of the device's LoRa® module.

The following sketch let's you find out what is the `DevEUI` of your Portenta Max Carrier:
The following sketch lets you find out what is the `DevEUI` of your Portenta Max Carrier:

```arduino
#define PORTENTA_CARRIER
#include <MKRWAN.h>

auto region = US915;

LoRaModem modem(Serial1);
LoRaModem modem(SerialLoRa);

void setup() {
Serial.begin(115200);
while(!Serial1);
while(!Serial);

if(!modem.begin(region)) {
Serial.println("Failed to start the module...");
Expand Down Expand Up @@ -199,7 +199,7 @@ Now, let's start sending information to TTN. The following sketch enables you to

auto region = US915;

LoRaModem modem(Serial1);
LoRaModem modem(SerialLoRa);

void setup() {
Serial.begin(115200);
Expand Down