Virtual Method

ValentDevicePluginupdate_state

unstable since: 1.0

Declaration [src]

void
update_state (
  ValentDevicePlugin* plugin,
  ValentDeviceState state
)

Description [src]

Update the plugin based on the new state of the device.

This function is called when the connected or paired state of the device changes. This may be used to configure actions, event handlers that may trigger outgoing packets and exchange connect-time data with the device.

This is optional for all implementations as plugins aren’t required to be dependent on the device state.

Available since: 1.0

Parameters

state

Type: ValentDeviceState

A ValentDeviceState