hci_le_create_conn(device,htobs(0x0010),htobs(0x0010),0,0,
peeraddr,0,15,15,0,3200,1,1,0,1000);
I get errno = 5
form above, and it means that the command has not been received and is not being processed in the host controller.
Could someone tell me where is wrong?
I want to connect my bluetooth smart device with my linux computer, but it not works.
Here is the fucntion hci_le_create_conn
's params below.
int hci_le_create_conn(int dd, uint16_t interval, uint16_t window,
uint8_t initiator_filter, uint8_t peer_bdaddr_type,
bdaddr_t peer_bdaddr, uint8_t own_bdaddr_type,
uint16_t min_interval, uint16_t max_interval,
uint16_t latency, uint16_t supervision_timeout,
uint16_t min_ce_length, uint16_t max_ce_length,
uint16_t *handle, int to)