20 lines
380 B
C
20 lines
380 B
C
|
|
#ifndef SCAN_BLUETEETH_H_
|
||
|
|
#define SCAN_BLUETEETH_H_
|
||
|
|
|
||
|
|
typedef signed char int8_t;
|
||
|
|
|
||
|
|
class ScanBlueteeth {
|
||
|
|
public:
|
||
|
|
ScanBlueteeth();
|
||
|
|
virtual ~ScanBlueteeth();
|
||
|
|
|
||
|
|
int InitDevice();
|
||
|
|
void StartScan();
|
||
|
|
int device_id;
|
||
|
|
int sock;
|
||
|
|
int retry_count ;
|
||
|
|
int max_retries ;
|
||
|
|
|
||
|
|
void ParseData(unsigned char *data, int len,int8_t rssi);
|
||
|
|
};
|
||
|
|
#endif
|