Try to use WIFI MAC address as deveui #24
daeynasvistas
started this conversation in
General
Replies: 2 comments
-
|
To use SetupLmicKey the key must be known at compile time. But you can always call LMIC.setDevEuiCallback after to replace with the callback you want (before starting to send data). The callback must fill buffer low byte first Something like that (I have not check if it work) void getEui(uint8_t *buf) {
// I am not sure if it is in the good order
buf[0] = xx;
buf[1]= yy;
WiFi.macAddress(buf+2);
}
void setup() {
(...)
SetupLmicKey<appEui, fakedeveui, appKey>::setup(LMIC);
LMIC.setDevEuiCallback(getEui);
(...)
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
its great... So SSID from WIFI AP are the same that LoRa Deveui |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
ok.. so in other lib i use the MAC address from ESP as "deveui" and "ssid"
something like this:
but now i need to pass char const *DEVEUI:
i try to do this, with no luck..
deveui are always
devEUI:"0000000000000000"
i know its nothing related with lib.. but if someone can help..
Beta Was this translation helpful? Give feedback.
All reactions