1 // ----------------------------------------------
3 // Author : <sylvain.gaeremynck\@parrot.fr>
6 // Parrot Video SDK : Examples/
8 // ----------------------------------------------
10 #include <VP_Os/vp_os_print.h>
11 #include <VP_Api/vp_api_error.h>
12 #include <Examples/common/com_server.h>
16 PRINT("Thread Server Start\n");
18 if(FAILED(init_com_server()))
20 PRINT("Failed to init\n");
24 if(FAILED(run_com_server(COM_RFCOMM)))
26 PRINT("Failed to run\n");
35 PRINT("Connection accepted\n");
37 if(SUCCEED(read_server(msg,&size)))
38 PRINT("msg: %s\n",msg);
41 if(FAILED(shutdown_com_server()))
43 PRINT("Failed to shutdown\n");
46 PRINT("Thread Server End\n");