User Manual

107
coreCliCmd
Description: Send a CLI-format command to the device. Commands are listed in the sectionUSB/Telnet
CLI Commands”.
Syntax:
EXPORT int __cdecl coreCliCmd(char *cmd, char* rsp, int len);
Parameters:
Parameter
Description
cmd
CLI command string (see API Command Reference)
rsp
Pointer to response string
len
Bytes available in response string
Return Values:
Value
Description
-1
General failure
0
Success
notifCtrl
Description: Enable/disable notifications and register a callback function to handle CLI-format
notifications. The notifications are defined in the next section. Notifications are
automatically disabled if the device is disconnected.
Syntax:
EXPORT int __cdecl notifCliCtrl(int mode, void(*notif_callback_t)(char *msg));
Parameters:
Parameter
Description
mode
Enable/disable notifications
notif_callback_t
Pointer to callback function to handle CLI notification
msg
Callback function parameter: Notification message string
Return Values:
Value
Description
-1
General failure
0
Success