1 // ----------------------------------------------
3 // Author : <sylvain.gaeremynck\@parrot.fr>
6 // Parrot Video SDK : Examples/linux
8 // ----------------------------------------------
10 #include <VP_Os/vp_os_print.h>
11 #include <VP_Api/vp_api_error.h>
12 #include <Examples/common/com_client.h>
16 if(FAILED(init_com_client()))
18 PRINT("Failed to init\n");
22 if(FAILED(run_com_client(COM_BNEP)))
24 PRINT("Failed to run\n");
31 PRINT("Connected to server\n");
34 while(FAILED(read_client(msg,&size)))
37 PRINT("received: %s\n",msg);
40 if(FAILED(shutdown_com_client()))
42 PRINT("Failed to shutdown\n");