![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
A example for lora_miun lib
Dependencies: libmDot lora_miun mbed-rtos mbed
Fork of mDot_LoRa_Connect_Example by
main.cpp
- Committer:
- biwa1400
- Date:
- 2017-03-08
- Revision:
- 5:b343513de87e
- Parent:
- 4:36e214ebfa56
File content as of revision 5:b343513de87e:
#include "mbed.h" #include "mDot.h" #include "MTSLog.h" #include <string> #include <vector> #include <algorithm> #include "Parking.h" int main() { Lora lora1; lora1.joinNetwork(); string a="helloWorld"; string receive; lora1.sendData_string(a); lora1.receiveData_string(receive); logInfo("receive: %s", receive.c_str()); lora1.useDot()->sleep(5); }