Handle LoRa Basic Function
Lora.h@0:f8af47d9f0cd, 2017-03-08 (annotated)
- Committer:
- biwa1400
- Date:
- Wed Mar 08 18:54:32 2017 +0000
- Revision:
- 0:f8af47d9f0cd
20170308
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
biwa1400 | 0:f8af47d9f0cd | 1 | #ifndef LORA_H_ |
biwa1400 | 0:f8af47d9f0cd | 2 | #define LORA_H_ |
biwa1400 | 0:f8af47d9f0cd | 3 | |
biwa1400 | 0:f8af47d9f0cd | 4 | #include "mbed.h" |
biwa1400 | 0:f8af47d9f0cd | 5 | #include "mDot.h" |
biwa1400 | 0:f8af47d9f0cd | 6 | |
biwa1400 | 0:f8af47d9f0cd | 7 | class Lora |
biwa1400 | 0:f8af47d9f0cd | 8 | { |
biwa1400 | 0:f8af47d9f0cd | 9 | private: |
biwa1400 | 0:f8af47d9f0cd | 10 | mDot* dot; |
biwa1400 | 0:f8af47d9f0cd | 11 | |
biwa1400 | 0:f8af47d9f0cd | 12 | public: |
biwa1400 | 0:f8af47d9f0cd | 13 | Lora(); |
biwa1400 | 0:f8af47d9f0cd | 14 | /* |
biwa1400 | 0:f8af47d9f0cd | 15 | 1.name |
biwa1400 | 0:f8af47d9f0cd | 16 | 2.password |
biwa1400 | 0:f8af47d9f0cd | 17 | 3.sub band |
biwa1400 | 0:f8af47d9f0cd | 18 | 4.ACK 0=NULL |
biwa1400 | 0:f8af47d9f0cd | 19 | */ |
biwa1400 | 0:f8af47d9f0cd | 20 | bool setting(string config_network_name, string config_network_pass, uint8_t config_frequency_sub_band,uint8_t config_ACK); |
biwa1400 | 0:f8af47d9f0cd | 21 | bool joinNetwork(); |
biwa1400 | 0:f8af47d9f0cd | 22 | bool sendData_vector(const std::vector<uint8_t>& data); |
biwa1400 | 0:f8af47d9f0cd | 23 | bool sendData_string(std::string& data); |
biwa1400 | 0:f8af47d9f0cd | 24 | bool receiveData_string(std::string& output_data); |
biwa1400 | 0:f8af47d9f0cd | 25 | mDot* useDot(){return dot;} |
biwa1400 | 0:f8af47d9f0cd | 26 | |
biwa1400 | 0:f8af47d9f0cd | 27 | |
biwa1400 | 0:f8af47d9f0cd | 28 | }; |
biwa1400 | 0:f8af47d9f0cd | 29 | |
biwa1400 | 0:f8af47d9f0cd | 30 | |
biwa1400 | 0:f8af47d9f0cd | 31 | #endif |