fprintf(stderr, "sens [activate | deactivate] sensor_id\n");
fprintf(stderr, "sens set_delay sensor_id delay\n");
fprintf(stderr, "sens poll\n");
+ fprintf(stderr, "sens poll_stop\n");
return 1;
}
pthread_mutex_unlock(&client_mutex);
return 1;
+ } else if (!strcmp(argv[0], "poll_stop")) {
+ pthread_mutex_lock(&client_mutex);
+ if (client){
+ fclose(client);
+ client = NULL;
+ }
+ pthread_mutex_unlock(&client_mutex);
+
+ return 1;
} else if (!strcmp(argv[0], "stop")) {
exit(1);
} else {