void update_state ( ValentDevicePlugin* plugin, ValentDeviceState state )
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