Hello. I am trying to allow a user to programmatically update the connection settings on my Parrot Anafi USA. Once connected to the drone, the following code updates the encryption key, but does not set the SSID- even after the power is reset. Any ideas? Thanks.
{
it.getPeripheral(WifiAccessPoint::class.java).let { wap → 
                if (wap != null) {
                    if (wap.security().secureWithWPA2(encryptionKey)) {
                        wap.ssid().value = ssid
    
                        it.disconnect()
                    }
                }
            }
}