Samd21 Pro RF cannot get the example code to compile in Arduino

Hi there~

I am following the example and have setup TTN and have all the developer credentials generated, but when I copy my DEVADDR into the example I get an error.

The line in the example code:

// LoRaWAN end-device address (DevAddr)
static const u4_t DEVADDR = { 0x26, 0x02, 0x1B, 0xE0 };

I get an error:

“scalar object ‘DEVADDR’ requires one element in initializer”

Any ideas?

Try

static const u4_t DEVADDR = 0x26021BE0;

/mike

Ok that worked. Probably want to update the instructions to note this subtle nuance. Thanks for the quick reply!

@partsoven were you able to get the thing to work with TTN? If yes which example code did you use? Thanks