onFailedToWrite
Sets up a Transformation when failing to write Data to a RemoteAttribute.
Parameters
action
the Transformation to apply when a Data has been written. Contains the Data that was attempted to be written and the GattResponse.WriteError that was received.