Hi all!
I’m testing around with Lorawan example. an I would like to replace the dev-eui, app-eui and app-key
from mbed_app.json and make a pointer in my program. so its faster to compile.
Thanks in advance!
Hi all!
I’m testing around with Lorawan example. an I would like to replace the dev-eui, app-eui and app-key
from mbed_app.json and make a pointer in my program. so its faster to compile.
Thanks in advance!
I found the solution
static uint8_t DEV_EUI[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
static uint8_t APP_EUI[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
static uint8_t APP_KEY[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
lorawan_connect_t connect_params;
connect_params.connect_type = LORAWAN_CONNECTION_OTAA;
connect_params.connection_u.otaa.dev_eui = DEV_EUI;
connect_params.connection_u.otaa.app_eui = APP_EUI;
connect_params.connection_u.otaa.app_key = APP_KEY;
replace retcode = lorawan.connect(); with
retcode = lorawan.connect(connect_params);