bsiever / microbit-pxt-blehid

Micro:bit MakeCode support to act as a Human Interface Devices (keyboard, mouse, etc.) over Bluetooth
https://bsiever.github.io/microbit-pxt-blehid/
MIT License
31 stars 11 forks source link

Memory allocation #13

Closed bsiever closed 2 years ago

bsiever commented 2 years ago

Two options:

bsiever commented 2 years ago

Nix on Dynamic (See: https://devzone.nordicsemi.com/f/nordic-q-a/63756/updating-the-value-pointer-for-a-ble_gatts_vloc_user-characteristic/260418#260418 . Buffer must remain valid throughout lifetime of attribute). Confirmed in current docs: https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v3.0.0%2Fstructble__gatts__attr__t.html

bsiever commented 2 years ago

Er, review all code in light of the above...

bsiever commented 2 years ago

Merged into #14