mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2025-12-22 08:54:21 +01:00
Comments
This commit is contained in:
@@ -199,11 +199,11 @@ public class TemplateManager extends BatteryManager<TemplateManagerCallbacks> {
|
|||||||
// If data are longer than MTU-3, they will be chunked into multiple packets.
|
// If data are longer than MTU-3, they will be chunked into multiple packets.
|
||||||
// Check out other split options, with .split(...).
|
// Check out other split options, with .split(...).
|
||||||
.split()
|
.split()
|
||||||
// Callback called when data were sent, or added to outgoing queue is Write Without Request
|
// Callback called when data were sent, or added to outgoing queue in case
|
||||||
// type has been chosen.
|
// Write Without Request type was used.
|
||||||
.with((device, data) -> log(LogContract.Log.Level.DEBUG, data.size() + " bytes were sent"))
|
.with((device, data) -> log(LogContract.Log.Level.DEBUG, data.size() + " bytes were sent"))
|
||||||
// Callback called when data were sent, or added to outgoing queue is Write Without Request
|
// Callback called when data were sent, or added to outgoing queue in case
|
||||||
// type has been chosen.
|
// Write Without Request type was used. This is called after .with(...) callback.
|
||||||
.done(device -> log(LogContract.Log.Level.APPLICATION, "Device name set to \"" + parameter + "\""))
|
.done(device -> log(LogContract.Log.Level.APPLICATION, "Device name set to \"" + parameter + "\""))
|
||||||
// Callback called when write has failed.
|
// Callback called when write has failed.
|
||||||
.fail((device, status) -> log(LogContract.Log.Level.WARNING, "Failed to change device name"));
|
.fail((device, status) -> log(LogContract.Log.Level.WARNING, "Failed to change device name"));
|
||||||
|
|||||||
Reference in New Issue
Block a user