Skip to content

samples: ti/beacon: add log and fix wrong payload data#196

Merged
ceolin merged 2 commits into
HubbleNetwork:mainfrom
HongNguyen635:samples/beacon
May 8, 2026
Merged

samples: ti/beacon: add log and fix wrong payload data#196
ceolin merged 2 commits into
HubbleNetwork:mainfrom
HongNguyen635:samples/beacon

Conversation

@HongNguyen635
Copy link
Copy Markdown
Collaborator

  • Fix packet shifted over by 6 bytes because HUBBLE_BLE_ADV_HEADER_SIZE instead of BLE_ADV_HEADER_SIZE.
  • Adding TI log over UART module. Log looks like this:
/dev/tty.usbmodemLS470FPO1 |  0.043792000 | LogMod_LogModule_Beacon | Log_INFO    | src/hubble_ble_adv.c:190 | Advertising started
/dev/tty.usbmodemLS470FPO1 |  0.043792000 | LogMod_LogModule_Beacon | Log_INFO    | src/main.c:77            | Hubble Beacon Started
/dev/tty.usbmodemLS470FPO1 |  0.052640000 | LogMod_LogModule_Beacon | Log_INFO    | src/hubble_ble_adv.c:127 | Advertise data updated

Add TI UART log module to the ble-beacon sample.

Signed-off-by: Hong Nguyen <hong@hubble.com>
2 fixes:
1. Use `HUBBLE_BLE_ADV_HEADER_SIZE` instead of `BLE_ADV_HEADER_SIZE`,
which is 12 bytes, causing the data to shift by 6 bytes off.
2. Remove unused pointer `data`.

Signed-off-by: Hong Nguyen <hong@hubble.com>
@ceolin ceolin merged commit 2b00a0f into HubbleNetwork:main May 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants