Easylube
Dependencies: DS1820 libmDot mbed-rtos mbed
Lora.h@3:323401b1b227, 2016-10-14 (annotated)
- Committer:
- TataLora
- Date:
- Fri Oct 14 08:43:33 2016 +0000
- Revision:
- 3:323401b1b227
- Parent:
- 2:26ffaed90e4f
EasyLube
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
TataLora | 2:26ffaed90e4f | 1 | |
TataLora | 2:26ffaed90e4f | 2 | #ifndef LORA_NETWORK_NAME |
TataLora | 2:26ffaed90e4f | 3 | |
TataLora | 2:26ffaed90e4f | 4 | #include "mDot.h" |
TataLora | 2:26ffaed90e4f | 5 | #include "MTSLog.h" |
TataLora | 2:26ffaed90e4f | 6 | //#include <vector> |
TataLora | 2:26ffaed90e4f | 7 | |
TataLora | 2:26ffaed90e4f | 8 | class Lora { |
TataLora | 2:26ffaed90e4f | 9 | public: |
TataLora | 2:26ffaed90e4f | 10 | Lora(mDot* dot, std::string networkName, std::string networkPassword, uint8_t frequencySubBand = 1); |
TataLora | 2:26ffaed90e4f | 11 | void SendData(std::vector<uint8_t> data, uint8_t maxAttempts); |
TataLora | 2:26ffaed90e4f | 12 | |
TataLora | 2:26ffaed90e4f | 13 | private: |
TataLora | 2:26ffaed90e4f | 14 | void config(); |
TataLora | 2:26ffaed90e4f | 15 | |
TataLora | 2:26ffaed90e4f | 16 | mDot* _dot; |
TataLora | 2:26ffaed90e4f | 17 | std::string _networkName; |
TataLora | 2:26ffaed90e4f | 18 | std::string _networkPassword; |
TataLora | 2:26ffaed90e4f | 19 | uint8_t _frequencySubBand; |
TataLora | 2:26ffaed90e4f | 20 | |
TataLora | 2:26ffaed90e4f | 21 | bool _isInitialized; |
TataLora | 2:26ffaed90e4f | 22 | }; |
TataLora | 2:26ffaed90e4f | 23 | |
TataLora | 2:26ffaed90e4f | 24 | #endif |