CS104_Slave_setConnectionEventHandler

Function CS104_Slave_setConnectionEventHandler 

Source
pub unsafe extern "C" fn CS104_Slave_setConnectionEventHandler(
    self_: CS104_Slave,
    handler: CS104_ConnectionEventHandler,
    parameter: *mut c_void,
)
Expand description

Set the connection event handler

The connection request handler is called whenever a connection event happens. A connection event can be when a client connects or disconnects, or when a START_DT or STOP_DT message is received.

ยงArguments

  • self - the slave instance
  • handler - the callback function to be used
  • parameter - user provided context parameter that will be passed to the callback function (or NULL if not required).