Skip to content

Commit b4b4a97

Browse files
author
Gonzalo Casas
committed
Add sketch for get Dev EUI
1 parent fe49ee4 commit b4b4a97

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

01_get_deveui/01_get_deveui.ino

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#include <MKRWAN.h>
2+
3+
// Select your region (AS923, AU915, EU868, KR920, IN865, US915, US915_HYBRID)
4+
_lora_band region = EU868;
5+
6+
LoRaModem modem(Serial1);
7+
8+
void setup() {
9+
Serial.begin(115200);
10+
while (!Serial);
11+
if (!modem.begin(region)) {
12+
Serial.println("Failed to start module");
13+
while (1) {}
14+
};
15+
Serial.print("Your device EUI is: ");
16+
Serial.println(modem.deviceEUI());
17+
}
18+
19+
void loop() {
20+
}

0 commit comments

Comments
 (0)