-
unable to retrive devEui set using #include <STM32LoRaWAN.h>
STM32LoRaWAN modem;
String appEUI_Set = "7649FC09A028FE04";
String devEUI_Set = "9A0684E16B882E92";
String appKey_Set = "E236B8E7D41F0B8966285798925BA7A6";
void setup() {
Serial.begin(115200);
pinMode(LED_BUILTIN, OUTPUT);
modem.begin(IN865);
// Set LoRaWAN credentials
if (modem.setDevEui(devEUI_Set)) {
Serial.println("DevEUI successfully set!");
} else {
Serial.println("Failed to set DevEUI!");
}
modem.setAppEui(appEUI_Set);
modem.setAppKey(appKey_Set);
// Attempt to join OTAA
// if (modem.joinOTAA()) {
// Serial.println("Join OTAA success!");
// } else {
// Serial.println("Join OTAA failed!");
// }
delay(1000);
String devEUI;
modem.getDevEui(&devEUI);
Serial.print("DevEUI: ");
Serial.println(devEUI);
}
void loop() {
digitalToggle(LED_BUILTIN);
delay(1000);
} OUTPUT
expected output |
Beta Was this translation helpful? Give feedback.
Answered by
naveen-79
Nov 27, 2024
Replies: 1 comment 1 reply
-
Hi @naveen-79 Please, Could you file an issue here: https://github.com/stm32duino/STM32LoRaWAN/issues? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
added issue to STM32Lorawan stm32duino/STM32LoRaWAN#45