2,9 → 2,7 |
#if !defined(BLUETOOTH_HANDLER_H) |
#define BLUETOOTH_HANDLER_H |
|
|
#include <bluetooth/bluetooth.h> |
#include <bluetooth/rfcomm.h> |
#include <bluetooth/hci.h> |
#include <bluetooth/hci_lib.h> |
|
12,20 → 10,6 |
|
#include <stdlib.h> |
|
|
#include <stdio.h> |
#include <stdlib.h> |
#include <fcntl.h> |
|
|
|
#include <errno.h> |
#include <sys/types.h> |
#include <netinet/in.h> |
#include <unistd.h>//for close() for socket |
|
#include <string.h> |
|
#define MAX_BT_DEVICES 3 |
|
extern int bt_device_count; |
34,8 → 18,5 |
extern char addrs[MAX_BT_DEVICES][19]; |
|
int scan_bt(); |
int bt_host_tick(int mk_fd); |
int bt_host_init(); |
int bt_host_send(char RxBuffer[150],int len); |
|
#endif |