Subversion Repositories Projects

Rev

Rev 127 | Blame | Last modification | View Log | RSS feed


#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>

#include <unistd.h>//for close() for socket

#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;

extern char names[MAX_BT_DEVICES][248];
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