Full functions
Dependencies: DHT22 libmDot-mbed5
Fork of mDot_LoRa_Connect_ABPA by
Diff: main.cpp
- Revision:
- 7:e29228e39982
- Parent:
- 5:6b988a804fcb
- Child:
- 8:206e0563e1a1
--- a/main.cpp Mon Apr 04 18:43:54 2016 +0000 +++ b/main.cpp Mon Aug 07 07:11:33 2017 +0000 @@ -18,8 +18,15 @@ std::vector<uint8_t> data; std::string data_str = "hello!"; + // use US915 plan + lora::ChannelPlan* plan = new lora::ChannelPlan_US915(); + // use EU868 plan + // lora::ChannelPlan* plan = new lora::ChannelPlan_EU868(); + assert(plan); // get a mDot handle - dot = mDot::getInstance(); + mDot* dot = mDot::getInstance(plan); + assert(dot); + // print library version information logInfo("version: %s", dot->getId().c_str());