Edit Code for Arduino

This commit is contained in:
unixweb 2019-10-06 00:06:12 +02:00
parent 62b9050e97
commit 2ba1c54da4

View File

@ -29,21 +29,21 @@ const lmic_pinmap lmic_pins = {
// replace with YOUR DEVEUI here use LSB and copy hex to replace 0x00
static const u1_t PROGMEM DEVEUI[8]={
0x5C, 0xD6, 0xF2, 0x26, 0x4E, 0xFD, 0xA9, 0x00 };
0x00, 0xD0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
void os_getDevEui (u1_t* buf) {
memcpy_P(buf, DEVEUI, 8);
}
// replace with YOUR APPEUI here use LSB and copy hex to replace 0x00
static const u1_t PROGMEM APPEUI[8]={
0x62, 0x32, 0x02, 0xD0, 0x7E, 0xD5, 0xB3, 0x70 };
0x00, 0x00, 0x00, 0xD0, 0x00, 0x00, 0x00, 0x00 };
void os_getArtEui (u1_t* buf) {
memcpy_P(buf, APPEUI, 8);
}
// replace with YOUR APPKEY here use MSB and copy hex to replace 0x00
static const u1_t PROGMEM APPKEY[16]={
0xCB, 0xB3, 0x67, 0x6F, 0x88, 0xB6, 0x26, 0x6F, 0x93, 0x9B, 0xE5, 0xC2, 0x5F, 0xF5, 0xE4, 0xE1 };
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
void os_getDevKey (u1_t* buf) {
memcpy_P(buf, APPKEY, 16);
};