On device side I have flashed the above code with security 0.
On client side I am using “Web Bluetooth API” to interact with device from browser.
I can connect to the device and get Descriptor value. The response I get in client is as below:
Code: Select all
Requesting Bluetooth Device...
> Name: PROV_211114
> Id: EWxPB84jlYAHqvjJlt1drA==
> Connected: false
Connecting to GATT Server...
Getting Custom Service...
Getting Custom Level Characteristic...
Getting Custom Level Desriptor...
Descritor value=prov-config
If I write to descriptor:
Code: Select all
let encoder = new TextEncoder('utf-8');
let userDescription = encoder.encode('ssid:myssid ; password:mypassword');
descriptor.writeValue(userDescription);
If I write to characteristic:
l
Code: Select all
et encoder = new TextEncoder('utf-8');
let userDescription = encoder.encode('ssid:myssid ; password:mypassword');
characteristic.writeValue(userDescription);
E (803534) WiFiProvConfig: Unable to unpack config data
E (803534) protocomm_nimble: Invalid content received, killing connection
Any help please.