Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Fix modbt scan response adv data length #122

Conversation

semireg
Copy link

@semireg semireg commented Jan 15, 2018

Although advertising packets are limited to 31 bytes, certain advertising peripherals allow for an additional “scan response” of more data. The ble_adv data bytes should use dynamic sizing via sizeof instead of static ESP_BLE_ADV_DATA_LEN_MAX.

More information is documented at a nearly identical issue: espressif/esp-idf#369

Pycom forum discussion at: https://forum.pycom.io/topic/2460/ble-features-non-blocking-connects-char-presentation-format

Although advertising packets are limited to 31 bytes, certain advertising peripherals allow for an additional “scan response” of more data. The ble_adv data bytes should use dynamic sizing via sizeof instead of static ESP_BLE_ADV_DATA_LEN_MAX.

More information is documented at a nearly identical issue: espressif/esp-idf#369
@husigeza husigeza merged commit 9ead58e into pycom:master Jan 24, 2018
peter-pycom added a commit that referenced this pull request May 4, 2020
X-Ryl669 pushed a commit to X-Ryl669/pycom-micropython-sigfox that referenced this pull request May 12, 2023
…onse-data-length-sizeof

Fix modbt scan response adv data length
X-Ryl669 pushed a commit to X-Ryl669/pycom-micropython-sigfox that referenced this pull request May 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants