BLE: Use unique name
This commit is contained in:
parent
2dfcfef58d
commit
9211c82d6f
2 changed files with 10 additions and 2 deletions
|
|
@ -75,6 +75,7 @@ pub async fn run(
|
|||
esp_radio::ble::controller::BleConnector<'static>,
|
||||
CONTROLLER_SLOTS,
|
||||
>,
|
||||
name: alloc::string::String,
|
||||
) {
|
||||
let mut resources: HostResources<DefaultPacketPool, CONNECTIONS_MAX, L2CAP_CHANNELS_MAX> =
|
||||
HostResources::new();
|
||||
|
|
@ -87,7 +88,7 @@ pub async fn run(
|
|||
|
||||
info!("Starting advertising and GATT service");
|
||||
let server = Server::new_with_config(GapConfig::Peripheral(PeripheralConfig {
|
||||
name: "ESP32 C-ITS",
|
||||
name: &name,
|
||||
appearance: &appearance::UNKNOWN,
|
||||
}))
|
||||
.unwrap();
|
||||
|
|
|
|||
Loading…
Reference in a new issue