Skip to content

unable to retrive lorawan devEui #45

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

Closed
naveen-79 opened this issue Nov 27, 2024 · 0 comments · Fixed by #46
Closed

unable to retrive lorawan devEui #45

naveen-79 opened this issue Nov 27, 2024 · 0 comments · Fixed by #46
Labels
bug 🐛 Something isn't working
Milestone

Comments

@naveen-79
Copy link

Describe the bug
unable to retrive devEui set using setDevEui.

To Reproduce

#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);
}

Expected behavior
Serial Output

DevEUI successfully set!
DevEUI: B1C4E90005012038

expected output 9A0684E16B882E92. got B1C4E90005012038

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: windows 11
  • Arduino IDE version: 2.3.3
  • STM32 core version: 2.9
  • Library version: 0.2.0
  • Tools menu settings if not the default:
  • Upload method: swd

Hardware (please complete the following information):

  • Board Name: Wio-E5-Mini
  • Hardware Revision: [e.g. Rev B]
  • Extra hardware used if any:

Additional context
https://github.com/orgs/stm32duino/discussions/2581#discussion-7557324

@naveen-79 naveen-79 added the bug label Nov 27, 2024
fpistm added a commit to fpistm/STM32LoRaWAN that referenced this issue Nov 27, 2024
Fixes stm32duino#45.

Signed-off-by: Frederic Pillon <[email protected]>
@fpistm fpistm added this to the 0.2.1/0.3.0 milestone Nov 27, 2024
@fpistm fpistm added bug 🐛 Something isn't working and removed bug labels Nov 27, 2024
@fpistm fpistm closed this as completed in f00cbc1 Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

2 participants