Watch
0
0
Fork
You've already forked esp32-c_its-companion
0

Compare commits

..
Author SHA1 Message Date
Jannik Beyerstedt
30a407a084 BLE: Use unique name 2026-08-21 19:00:08 +02:00
Jannik Beyerstedt
e3434708cb BLE: Add "service change attribute", advertise service 2026-08-19 15:38:51 +02:00
Jannik Beyerstedt
265f2e4eea BLE: Add raw messages
BLE can only fit 251 bytes of payload in notifications which isn't nearly enough for a raw V2X message.
So only publish a notification which message was received and let the client
poll the content from the characteristic (since reads can get data in fragments)
2026-08-19 15:38:51 +02:00
Jannik Beyerstedt
46b5f938bb BLE: Fix UUIDs 2026-08-19 15:38:51 +02:00

View file

@ -193,10 +193,10 @@ pub async fn run(
"Starting advertising and GATT service for {}",
features.join(",")
);
let server = Server::new_with_config(GapConfig::Peripheral(PeripheralConfig {
let server = Server::new_with_config(PeripheralConfig {
name: &name,
appearance: &appearance::UNKNOWN,
}))
appearance: &appearance::UNKNOWN, // maybe appearance::outdoor_sports_activity::LOCATION_AND_NAVIGATION_DISPLAY ?
})
.unwrap();
let _ = embassy_futures::join::join(ble_task(runner), async {