New to ESP32. Working with Wifi-Provisioning Manager Example.
Code: Select all
get_device_service_name(service_name, sizeof(service_name))
seems to set the device name. Code for get_device_service_name is:
Code: Select all
uint8_t eth_mac[6];
const char *ssid_prefix = "PROV_";
esp_wifi_get_mac(WIFI_IF_STA, eth_mac);
snprintf(service_name, max, "%s%02X%02X%02X", ssid_prefix, eth_mac[3], eth_mac[4], eth_mac[5]);
Even though I change ssid_prefix from "PROV_" to something else ("ESP32" for example), BLE scan on Android app always shows "PROV_XXXXXX", where XXXXXX are the 4th, 5th and 6th elements of eth_mac. How can I change the device name which gets adverstised in a BLE scan?