public interface MtuTestCallback
onResult(TestResult)
method will
be called if it either fails, or succeeds. If the write fails, the device will be disconnected, as once a bluetooth operation times out in this manner, nothing
else will work until the device gets re-connected.Modifier and Type | Interface and Description |
---|---|
static class |
MtuTestCallback.MtuTestEvent
Class passed in to
onTestRequest(MtuTestEvent) when an MTU has been successfully negotiated to see if SweetBlue should now test it to make
sure it works as it's supposed to. |
static class |
MtuTestCallback.Please
Please class used to tell SweetBlue if it should test the new MTU size, and if so, which service uuid, and char uuid to use, and the data to write (the data
should be the size of the MTU size requested to properly test).
|
static class |
MtuTestCallback.TestResult
Enumeration reporting the result of an MTU test.
|
Modifier and Type | Method and Description |
---|---|
void |
onResult(MtuTestCallback.TestResult result)
This gets called if the MTU test succeeds, or fails.
|
MtuTestCallback.Please |
onTestRequest(MtuTestCallback.MtuTestEvent event)
This gets called after
BleDevice.negotiateMtu(int, ReadWriteListener) or any of it's overloads is called, and it returns a success. |
MtuTestCallback.Please onTestRequest(MtuTestCallback.MtuTestEvent event)
BleDevice.negotiateMtu(int, ReadWriteListener)
or any of it's overloads is called, and it returns a success. Return a
MtuTestCallback.Please
here to tell SweetBlue if it should test the new MTU setting or not.void onResult(MtuTestCallback.TestResult result)