You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/hardware/04.pro/carriers/portenta-max-carrier/tutorials/connecting-to-ttn/content.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -106,19 +106,19 @@ Upload the sketch, open the Serial Monitor and wait for the firmware update to f
106
106
107
107
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.
108
108
109
-
The following sketch let's you find out what is the `DevEUI` of your Portenta Max Carrier:
109
+
The following sketch lets you find out what is the `DevEUI` of your Portenta Max Carrier:
110
110
111
111
```arduino
112
112
#define PORTENTA_CARRIER
113
113
#include <MKRWAN.h>
114
114
115
115
auto region = US915;
116
116
117
-
LoRaModem modem(Serial1);
117
+
LoRaModem modem(SerialLoRa);
118
118
119
119
void setup() {
120
120
Serial.begin(115200);
121
-
while(!Serial1);
121
+
while(!Serial);
122
122
123
123
if(!modem.begin(region)) {
124
124
Serial.println("Failed to start the module...");
@@ -199,7 +199,7 @@ Now, let's start sending information to TTN. The following sketch enables you to
0 commit comments