Resolve Bluetooth Warning: Unable to Read All Data
Issue
These remedies apply when you receive data and you get this warning message:
'bluetooth' unable to read all requested data.
Possible Solutions
ASCII Data
Try these remedies to resolve the following causes when you use the Bluetooth® interface for reading ASCII (text) data using the
readline
function.
Cause | Solution |
---|---|
An incorrect read terminator was used. | Verify that the Terminator property is set to the value
required by your device. For more information about setting the property, see
configureTerminator . |
Communication with the device was interrupted. | Check your device connection. For tips, see Troubleshooting Bluetooth Communication. |
Binary Data
Try these remedies to resolve the following causes when you use the Bluetooth interface for reading binary data using the read
function.
Cause | Solution |
---|---|
The number of values to read was set to a higher value than the number of values available to be read. | Set the number of values to read using the input argument
count on the read function. For
information about setting number of values to read, see read . |
Device did not send all the requested data. | Check your device connection. For tips, see Troubleshooting Bluetooth Communication. |
There was a data format mismatch. | Verify that the device data format matches the specified read format. Data
format is set using the input argument datatype on the
read function. For more information about supported data
types, see read . |
See Also
configureTerminator
| read
| readline