Skip to content

Add support for Prepare Write and Execute Write #385

@acouvreur

Description

@acouvreur

When sending chunks of data that exceed the MTU we must chunk the data ourselves and rebuild it on the server side.

From my understanding, we can use the Prepare Write and Execute Write commands in order to send chunks of data at the protocol level.

It looks like some binding already have that capability: https://github.com/search?q=repo%3Atinygo-org%2Fbluetooth%20PREPARE&type=code

Image

References:


Maybe add the following function to DeviceCharacteristic

func (c DeviceCharacteristic) WritePrepare(offset uint16, p []byte) {
  ... 
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions