|
network-provisioning-zephyr
Zephyr port of Espressif's network provisioning protocol (Wi-Fi over BLE / SoftAP / console)
|
Go to the source code of this file.
Functions | |
| int | network_prov_scheme_ble_set_service_uuid (const uint8_t uuid128[16]) |
| Override the 128-bit GATT service UUID the device advertises and serves. | |
| int | network_prov_scheme_ble_set_mfg_data (const uint8_t *data, size_t len) |
| Set manufacturer-specific data added to the BLE scan response, so a client can match the device on it. | |
Variables | |
| const struct network_prov_scheme | network_prov_scheme_ble |
| BLE (GATT) transport scheme object. | |
| int network_prov_scheme_ble_set_mfg_data | ( | const uint8_t * | data, |
| size_t | len | ||
| ) |
Set manufacturer-specific data added to the BLE scan response, so a client can match the device on it.
Mirrors network_prov_scheme_ble_set_mfg_data().
| data | Manufacturer data bytes (typically a 2-byte company ID followed by a payload); copied internally. Pass len 0 to clear. |
| len | Length in bytes; must fit one advertising AD structure. |
len is too large. | int network_prov_scheme_ble_set_service_uuid | ( | const uint8_t | uuid128[16] | ) |
Override the 128-bit GATT service UUID the device advertises and serves.
Per-endpoint characteristic UUIDs are still derived from this base, and the apps map endpoints via the characteristic user-description descriptors, so any unique base works. Mirrors network_prov_scheme_ble_set_service_uuid().
| uuid128 | 16-byte UUID, little-endian (as produced by BT_UUID_128_ENCODE). |
uuid128 is NULL.
|
extern |
BLE (GATT) transport scheme object.
Pass &network_prov_scheme_ble as the scheme of network_prov_mgr_config. Requires CONFIG_NETWORK_PROV_BLE (otherwise referencing it is a link error).