mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
better
This commit is contained in:
parent
456014dd5f
commit
d2f6156841
4 changed files with 46 additions and 18 deletions
|
|
@ -49,11 +49,11 @@ class SoftwareUpdateService : JobIntentService(), Logging {
|
|||
|
||||
sync.connect()
|
||||
|
||||
// we begin by setting our MTU size as high as it can go
|
||||
sync.requestMtu(512)
|
||||
|
||||
sync.discoverServices() // Get our services
|
||||
|
||||
// we begin by setting our MTU size as high as it can go
|
||||
sync.requestMtu(512)
|
||||
|
||||
val service = sync.gatt.services.find { it.uuid == SW_UPDATE_UUID }!!
|
||||
|
||||
val totalSizeDesc = service.getCharacteristic(SW_UPDATE_TOTALSIZE_CHARACTER)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue