Open fabik111 opened 1 month ago
Memory usage change @ e358f2d4ed9baaf13d032c11cb9ab17ed7392280
Board | flash | % | RAM for global variables | % |
---|---|---|---|---|
arduino:mbed_nano:nano33ble |
:small_red_triangle: 0 - +64 | 0.0 - +0.01 | 0 - 0 | 0.0 - 0.0 |
arduino:mbed_nano:nanorp2040connect |
:small_red_triangle: +8 - +8 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:megaavr:uno2018:mode=on |
:small_red_triangle: +52 - +52 | +0.11 - +0.11 | 0 - 0 | 0.0 - 0.0 |
arduino:renesas_uno:unor4wifi |
:small_red_triangle: +16 - +32 | +0.01 - +0.01 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:mkrwifi1010 |
:small_red_triangle: +8 - +8 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:nano_33_iot |
:small_red_triangle: +8 - +8 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
Memory usage change @ ac8ab197cd183b7ddbd2a3eb35ac210a10bbaa51
Board | flash | % | RAM for global variables | % |
---|---|---|---|---|
arduino:mbed_nano:nano33ble |
:small_red_triangle: 0 - +64 | 0.0 - +0.01 | 0 - 0 | 0.0 - 0.0 |
arduino:mbed_nano:nanorp2040connect |
:small_red_triangle: +8 - +8 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:megaavr:uno2018:mode=on |
:small_red_triangle: +52 - +52 | +0.11 - +0.11 | 0 - 0 | 0.0 - 0.0 |
arduino:renesas_uno:unor4wifi |
:small_red_triangle: +16 - +32 | +0.01 - +0.01 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:mkrwifi1010 |
:small_red_triangle: +8 - +8 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:nano_33_iot |
:small_red_triangle: +8 - +8 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
The current
writeValue
method, used for writing the value of a characteristic, returns an integer value. This value is used as a Boolean to indicate the success or the failure of the writing operation, without giving any indication about the amount of bytes actually transferred (in case of subscription) or "loaded" into the characteristic (in case of a readable characteristic). Considering that the MTU, the amount of transferable data, is decided by the central and varies device by device, it is impossible for the user to determinate how many bytes are transferred and upon that to take an action. In this PR awrite
method is added for the genericBLECharacteristic
returning the number of bytes transferred.It works both when the device is in peripheral and central mode.