![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
mdot multitech
main.cpp@0:0becc94174b3, 2017-09-03 (annotated)
- Committer:
- alphaemmeo
- Date:
- Sun Sep 03 14:11:06 2017 +0000
- Revision:
- 0:0becc94174b3
base to start
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
alphaemmeo | 0:0becc94174b3 | 1 | |
alphaemmeo | 0:0becc94174b3 | 2 | // mbed headers |
alphaemmeo | 0:0becc94174b3 | 3 | #include "mbed.h" |
alphaemmeo | 0:0becc94174b3 | 4 | #include "rtos.h" |
alphaemmeo | 0:0becc94174b3 | 5 | // MTS headers |
alphaemmeo | 0:0becc94174b3 | 6 | #include "mDot.h" |
alphaemmeo | 0:0becc94174b3 | 7 | #include "ChannelPlans.h" |
alphaemmeo | 0:0becc94174b3 | 8 | //#include "MTSLog.h" |
alphaemmeo | 0:0becc94174b3 | 9 | |
alphaemmeo | 0:0becc94174b3 | 10 | //#include <string> |
alphaemmeo | 0:0becc94174b3 | 11 | |
alphaemmeo | 0:0becc94174b3 | 12 | int main() { |
alphaemmeo | 0:0becc94174b3 | 13 | // use US915 plan |
alphaemmeo | 0:0becc94174b3 | 14 | lora::ChannelPlan* plan = new lora::ChannelPlan_US915(); |
alphaemmeo | 0:0becc94174b3 | 15 | // use EU868 plan |
alphaemmeo | 0:0becc94174b3 | 16 | // lora::ChannelPlan* plan = new lora::ChannelPlan_EU868(); |
alphaemmeo | 0:0becc94174b3 | 17 | // assert(plan); |
alphaemmeo | 0:0becc94174b3 | 18 | |
alphaemmeo | 0:0becc94174b3 | 19 | mDot* dot = mDot::getInstance(plan); |
alphaemmeo | 0:0becc94174b3 | 20 | // assert(dot); |
alphaemmeo | 0:0becc94174b3 | 21 | |
alphaemmeo | 0:0becc94174b3 | 22 | // ..... |
alphaemmeo | 0:0becc94174b3 | 23 | |
alphaemmeo | 0:0becc94174b3 | 24 | return 0; |
alphaemmeo | 0:0becc94174b3 | 25 | } |
alphaemmeo | 0:0becc94174b3 | 26 | |
alphaemmeo | 0:0becc94174b3 | 27 | |
alphaemmeo | 0:0becc94174b3 | 28 |