public interface FutureData
BleDevice.write(UUID, FutureData)
so you can provide time-sensitive data at the last possible moment. For example you may want to send the current time to a peripheral. If you provided
the time through BleDevice.write(UUID, byte[])
then the operation might spend a second or two in SweetBlue's internal job
queue, so that by the time the write was actually sent off, the time would be a few seconds behind. Using this class, the data will be requested right before
it actually gets sent off.Modifier and Type | Method and Description |
---|---|
byte[] |
getData()
Return the data that should (for example) be sent to a peripheral through
BleDevice.write(UUID, FutureData) . |
byte[] getData()
BleDevice.write(UUID, FutureData)
.