8.12. How to check if the connection to 8SMC5-USB is established and still active during my session using the libximc library?¶
To constantly check for a connection between the controller and the libximc library, send the get_status command at regular intervals in the loop.
result_t XIMC_API get_status (device_t id, status_t *status)
The method described above can be implemented in any program that uses the libximc library.
A similar connection verification method is implemented in XILab