6 *Sends data of the size hp_size from address hp to the bluetooth device (UART)
8 int bth_send_packet(uint8_t *hp, uint16_t hp_size)
10 /*is bluetooth device free, or is it busy by the previous command?*/
11 if(bth_local_info.busy==0) {
13 write(hci_socket, hp, hp_size);
15 bth_local_info.busy=1;
16 return(0); //everything sent ==== OK =====