]> rtime.felk.cvut.cz Git - tiny-bt.git/blob - testf/t4/testslave.c
Version from David Plotek's bachelor thesis CD
[tiny-bt.git] / testf / t4 / testslave.c
1 /*
2 *  C Implementation: testslave
3 *
4 * Description: 
5 *
6 *
7 * Author: root <root@ubuntu>, (C) 2008
8 *
9 * Copyright: See COPYING file that comes with this distribution
10 *
11 */
12
13 #include <stdio.h>
14 #include <stdlib.h>
15 #include <errno.h>
16 #include <stdint.h>
17 #include "tiny_bt_hci_core.h"
18 #include "tiny_bt_hci_cmd.h"
19 #include "testapp.h"
20
21
22 int main(void){
23         int ii=30000;
24         tiny_bt_init(1);
25         printf("begin of main\n");
26         //if(tiny_bt_read_bd_addr(&p_connection->master.bdaddr, callback_app_read_bd_addr)<0){
27 //              perror("tiny_bt_read_bd_addr error");
28 //              return -1;
29 //      }
30         while(1){
31                 
32                 ii--;
33                 if(tiny_bt_process()<0){
34                         perror("process error");
35                         return -1;
36                 }
37
38         }
39         return 0;
40 }