SENA Rhio10 User Manual

Page 86

Advertising
background image

86

RHIO_Close

Description : Used when users want to disconnect the current connection with the Rhio in both

serial and TCP connection. In order to reconnect to the Rhio, be sure to use Rhio-Close function

before connection attempt.

Function Prototype :

extern "C" __declspec(dllexport) bool RHIO_Close();

Parameter : None

Return: TRUE if successful, False if failed.

eg. : RHIO_Close();

RHIO_SndCmd_SetOnOff

Description : Used to send the command to turn ON/OFF an ouput port.

Function Prototype :

extern "C" __declspec(dllexport) bool RHIO_SndCmd_SetOnOff

(int iOutputNum, EOnOffFlag eOnOff);

Parameter :

int iOutputNum :

Output port number (1~10)

EOnOffFlag eOnOff : Control flag (EOF_ON, EOF_OFF)

Return : TRUE if successful, False if failed.

Parameter when reaction event is received :

WPARAM

: Command transfer status flag (ESF_ONOFF)

LPARAM

: Control status flag of the command (False if Time Out Error)

(0x30: Normal operation, 0x31 : Not the Run Mode, 0x32: Abnormal operation)

eg. : RHIO_SndCmd_SetOnOff(1, EOF_ON);

Advertising