5 *Sends data of the size hp_size from address hp to the bluetooth device (UART)
7 int bth_send_packet(uint8_t *hp, uint16_t hp_size)
9 /*is bluetooth device free, or is it busy by the previous command?*/
10 if(bth_local_info.busy==0) {
12 VypisHexa(hp,hp_size);
16 for(i=0; i<hp_size;i++) {
18 sci_rs232_sendch(zn,2); //bth
19 // VypisHexa((hp+i),1);
22 bth_local_info.busy=1;
23 return(0); //everything sent ==== OK =====