BLEWifiConfig issue

hello ,im using Bluetooth wifi config code

void setup() {
    Serial.begin(115200);

    BLE.init();
    BLE.configServer(1);
    configService.addService();
    configService.begin();

    // Wifi config service requires a specific advertisement format to be recognised by the app
    // The advertisement needs the local BT address, which can only be obtained after starting peripheral mode
    // Thus, we stop advertising to update the advert data, wait for advertising to stop, then restart advertising with new data
    BLE.beginPeripheral();
    BLE.configAdvert()->stopAdv();
    BLE.configAdvert()->setAdvData(configService.advData());
    BLE.configAdvert()->updateAdvertParams();
    delay(100);
    BLE.configAdvert()->startAdv();

}

it can config wifi ok but restart bw16 cant auto connect wifi ,please let me know how to do that thanks。

Hi @kal

WiFi network automatic save to flash and automatic reconnect from flash is a feature that is not present in the Arduino SDK. If you need this feature, you can consider using GitHub Standard SDK, which includes WiFi save and auto reconnect, as well as BLE WiFi Config.