Using the Dot examples application from Mbed online compiler
Config the example_config.h
// the active example is the one that will be compiled
#if !defined(ACTIVE_EXAMPLE)
#define ACTIVE_EXAMPLE AUTO_OTA_EXAMPLE
#endif
// the active channel plan is the one that will be compiled
// options are :
// CP_US915
// CP_AU915
// CP_EU868
// CP_KR920
// CP_AS923
// CP_AS923_JAPAN
// CP_IN865
#if !defined(CHANNEL_PLAN)
#define CHANNEL_PLAN CP_EU868
in the auto_ota_example.cpp config as:
static std::string network_name = “LoraWAN-001”;
static std::string network_passphrase = “LoraWAN-001”;
static uint8_t network_id[] = { 0x00,0x80,0x00,0x00,0x00,0x01,0x1d,0xab};
static uint8_t network_key[] = { 0x82, 0x74, 0x11, 0x21, 0x1e, 0x6b, 0x67, 0x64, 0x38, 0x53, 0xcb, 0xdb, 0xb3, 0x68, 0xa5, 0xe3};
static uint8_t frequency_sub_band = 0;
static lora::NetworkType network_type = lora::PUBLIC_LORAWAN;
static uint8_t join_delay = 5;
static uint8_t ack = 0;
static bool adr = true;
// deepsleep consumes slightly less current than sleep
// in sleep mode, IO state is maintained, RAM is retained, and application will resume after waking up
// in deepsleep mode, IOs float, RAM is lost, and application will start from beginning after waking up
// if deep_sleep == true, device will enter deepsleep mode
static bool deep_sleep = false;
did check the lib version for mbed-os compile with the right version
can not connect to chipstack server
i did check the keys are matching .