Breadcrumbs

CDRFLEx.set_on_disconnected

Features

This is a function for registering the callback function that automatically checks if the connection with the robot controller has been terminated by external force or user. It is useful when functions that should be executed automatically are made.

Parameter

Parameter Name

Data Type

Default Value

Description

pCallbackFunc

TOnDisconnectedCB

-

Refer to definition of callback function

Return

None.

Example

C++
void OnDisconnectedCB()
{
    // Needs the reconnection of the robot controller and error handling
}

int main()
{
    drfl.set_on_disconnected(OnDisconnectedCB);
}