v1.0
Dependencies: SDFileSystem mbed
WiFiTracker.h@0:0073c8def9f1, 2016-05-09 (annotated)
- Committer:
- jehoon
- Date:
- Mon May 09 00:13:40 2016 +0000
- Revision:
- 0:0073c8def9f1
WiFi Tracker
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jehoon | 0:0073c8def9f1 | 1 | #include "RingBuffer.h" |
jehoon | 0:0073c8def9f1 | 2 | #include "SDFileSystem.h" |
jehoon | 0:0073c8def9f1 | 3 | #include "mbed.h" |
jehoon | 0:0073c8def9f1 | 4 | |
jehoon | 0:0073c8def9f1 | 5 | typedef struct WiFiProbe |
jehoon | 0:0073c8def9f1 | 6 | { |
jehoon | 0:0073c8def9f1 | 7 | uint8_t mac[6]; |
jehoon | 0:0073c8def9f1 | 8 | int8_t rssi; |
jehoon | 0:0073c8def9f1 | 9 | int8_t cnt; |
jehoon | 0:0073c8def9f1 | 10 | |
jehoon | 0:0073c8def9f1 | 11 | }WiFiProbe; |
jehoon | 0:0073c8def9f1 | 12 | |
jehoon | 0:0073c8def9f1 | 13 | |
jehoon | 0:0073c8def9f1 | 14 | class WiFiTracker |
jehoon | 0:0073c8def9f1 | 15 | { |
jehoon | 0:0073c8def9f1 | 16 | public: |
jehoon | 0:0073c8def9f1 | 17 | |
jehoon | 0:0073c8def9f1 | 18 | WiFiTracker() ; |
jehoon | 0:0073c8def9f1 | 19 | ~WiFiTracker(); |
jehoon | 0:0073c8def9f1 | 20 | |
jehoon | 0:0073c8def9f1 | 21 | uint8_t write_sdcard(char c); |
jehoon | 0:0073c8def9f1 | 22 | uint8_t write_sdcard(char* str, int len); |
jehoon | 0:0073c8def9f1 | 23 | |
jehoon | 0:0073c8def9f1 | 24 | char read(); |
jehoon | 0:0073c8def9f1 | 25 | int write(char); |
jehoon | 0:0073c8def9f1 | 26 | int find(char*); |
jehoon | 0:0073c8def9f1 | 27 | |
jehoon | 0:0073c8def9f1 | 28 | |
jehoon | 0:0073c8def9f1 | 29 | int char_cnt(char*, char); |
jehoon | 0:0073c8def9f1 | 30 | int char_change(char*, char, char); |
jehoon | 0:0073c8def9f1 | 31 | |
jehoon | 0:0073c8def9f1 | 32 | void LedBlink(int, int); |
jehoon | 0:0073c8def9f1 | 33 | |
jehoon | 0:0073c8def9f1 | 34 | private: |
jehoon | 0:0073c8def9f1 | 35 | RingBuffer buffer; |
jehoon | 0:0073c8def9f1 | 36 | Serial dbg; |
jehoon | 0:0073c8def9f1 | 37 | SDFileSystem sd; |
jehoon | 0:0073c8def9f1 | 38 | FILE *fp; |
jehoon | 0:0073c8def9f1 | 39 | DigitalOut led; |
jehoon | 0:0073c8def9f1 | 40 | |
jehoon | 0:0073c8def9f1 | 41 | uint32_t g_store_cnt; |
jehoon | 0:0073c8def9f1 | 42 | |
jehoon | 0:0073c8def9f1 | 43 | }; |
jehoon | 0:0073c8def9f1 | 44 |