Modified Connect Example showing how to set the APP-EUI and APP-KEY
Dependencies: libmDot mbed-rtos mbed
Fork of mDot_LoRa_Connect_Example_APP_EUI_KEY by
Diff: main.cpp
- Revision:
- 8:f1ec238e61c2
- Parent:
- 6:ac306e26e4cc
--- a/main.cpp Mon Apr 04 18:43:17 2016 +0000 +++ b/main.cpp Mon Apr 04 20:50:33 2016 +0000 @@ -42,10 +42,15 @@ if ((ret = dot->setFrequencySubBand(config_frequency_sub_band)) != mDot::MDOT_OK) { logError("failed to set frequency sub band %d:%s", ret, mDot::getReturnCodeString(ret).c_str()); } + +// logInfo("setting public network mode"); +// if ((ret = dot->setPublicNetwork(true)) != mDot::MDOT_OK) { +// logError("failed to public network mode"); +// } std::vector<uint8_t> temp; - for (int i = 0; i < 16; i++) { + for (int i = 0; i < 8; i++) { temp.push_back(config_app_eui[i]); }