Skip to content

Commit

Permalink
🔀️ Merge branch 'yann/feature/ble/allow-larger-packet-reception' into…
Browse files Browse the repository at this point in the history
… develop
  • Loading branch information
ladislas committed May 13, 2024
2 parents 0a6affc + afdc6b2 commit a4584c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions config/mbed_app.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"bluenrg_ms.SPI_nCS": "BLE_SPI_NSS",
"bluenrg_ms.SPI_SCK": "BLE_SPI_SCK",
"cordio.desired-att-mtu": 251,
"cordio.rx-acl-buffer-size": 259,
"cordio.max-prepared-writes": 1,
"sd.SPI_CS": "SD_SPI_CS",
"sd.SPI_MISO": "SD_SPI_MISO",
"sd.SPI_MOSI": "SD_SPI_MOSI",
Expand Down
4 changes: 2 additions & 2 deletions libs/BLEKit/include/BLEServiceFileExchange.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ class BLEServiceFileExchange : public interface::BLEService
GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_NOTIFY};
std::function<void()> _on_clear_file_requested_callback {};

std::array<uint8_t, 128> file_reception_buffer {};
WriteOnlyArrayGattCharacteristic<uint8_t, 128> file_reception_buffer_characteristic {
std::array<uint8_t, 256> file_reception_buffer {};
WriteOnlyArrayGattCharacteristic<uint8_t, 256> file_reception_buffer_characteristic {
service::file_exchange::characteristic::file_reception_buffer, file_reception_buffer.begin()};

std::array<uint8_t, 32> file_sha256 {};
Expand Down
2 changes: 1 addition & 1 deletion libs/FileManagerKit/include/FileReception.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class FileReception
CoreEventQueue event_queue {};

CircularQueue<uint8_t, 1024> _circular_queue {};
std::array<uint8_t, 128> _buffer {};
std::array<uint8_t, 256> _buffer {};
};

} // namespace leka

0 comments on commit a4584c4

Please sign in to comment.