Handle LoRa Basic Function
Diff: Lora.h
- Revision:
- 0:f8af47d9f0cd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Lora.h Wed Mar 08 18:54:32 2017 +0000 @@ -0,0 +1,31 @@ +#ifndef LORA_H_ +#define LORA_H_ + +#include "mbed.h" +#include "mDot.h" + +class Lora +{ +private: + mDot* dot; + +public: + Lora(); + /* + 1.name + 2.password + 3.sub band + 4.ACK 0=NULL + */ + bool setting(string config_network_name, string config_network_pass, uint8_t config_frequency_sub_band,uint8_t config_ACK); + bool joinNetwork(); + bool sendData_vector(const std::vector<uint8_t>& data); + bool sendData_string(std::string& data); + bool receiveData_string(std::string& output_data); + mDot* useDot(){return dot;} + + +}; + + +#endif