pub enum Error {
DescriptorTooLong,
DescriptorBufferTooLong,
ValueBufferTooLong,
TooManyHandlesToRead,
}
Expand description
Potential errors from parameter validation.
Before some commands are sent to the controller, the parameters are validated. This type enumerates the potential validation errors. Must be specialized on the types of communication errors.
Variants§
DescriptorTooLong
For the Add Characteristic Descriptor command: the descriptor value is longer than the maximum descriptor value length.
DescriptorBufferTooLong
For the Add Characteristic Descriptor command: the descriptor value maximum length is so large that the serialized structure may be more than 255 bytes. The maximum size is 227.
ValueBufferTooLong
For the Update Characteristir Value command: the length of the characteristic value is so large that the serialized structure would be more than 255 bytes. The maximum size is 249.
TooManyHandlesToRead
For the Read Multiple Characteristic Values command: the number of handles would cause the serialized command to be more than 255 bytes. The maximum length is 126 handles.