Hi everyone,
I have started a project use wifi and ble. My esp32 will scan and send list of Access points to my smartphone via BLE. I will choose AP in smartphone then esp32 will conect with that AP. I can get AP list form Wifi but I don't know how to write AP list to Characteristic in BLE. Someone can help me ?
I will be greatful for any help!
Connect Wifi via Bluetooth Low Energy
Re: Connect Wifi via Bluetooth Low Energy
Howdy,
What kind of help do you need?
Loosely, think of a characteristic in BLE as a variable that contains byte data. The "name" of the variable is the characteristic UUID (the 128 bits of data of the form 1322b5aa-d1b3-450c-addc-c8f4c80dbb3c). The BLE server maintains that data and the BLE client can ask for the value of that variable or ask the server to save a new value for that variable.
If we think of your access point SSIDs as simply "data" then you can set the value of your characteristic to a delimited concatenation of your list of SSIDs.
This would be my high level approach.
What kind of help do you need?
Loosely, think of a characteristic in BLE as a variable that contains byte data. The "name" of the variable is the characteristic UUID (the 128 bits of data of the form 1322b5aa-d1b3-450c-addc-c8f4c80dbb3c). The BLE server maintains that data and the BLE client can ask for the value of that variable or ask the server to save a new value for that variable.
If we think of your access point SSIDs as simply "data" then you can set the value of your characteristic to a delimited concatenation of your list of SSIDs.
This would be my high level approach.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
Re: Connect Wifi via Bluetooth Low Energy
Hi kolban,kolban wrote:Howdy,
What kind of help do you need?
Loosely, think of a characteristic in BLE as a variable that contains byte data. The "name" of the variable is the characteristic UUID (the 128 bits of data of the form 1322b5aa-d1b3-450c-addc-c8f4c80dbb3c). The BLE server maintains that data and the BLE client can ask for the value of that variable or ask the server to save a new value for that variable.
If we think of your access point SSIDs as simply "data" then you can set the value of your characteristic to a delimited concatenation of your list of SSIDs.
This would be my high level approach.
Thanks for your help.
Re: Connect Wifi via Bluetooth Low Energy
Hi kolban,kolban wrote:Howdy,
What kind of help do you need?
Loosely, think of a characteristic in BLE as a variable that contains byte data. The "name" of the variable is the characteristic UUID (the 128 bits of data of the form 1322b5aa-d1b3-450c-addc-c8f4c80dbb3c). The BLE server maintains that data and the BLE client can ask for the value of that variable or ask the server to save a new value for that variable.
If we think of your access point SSIDs as simply "data" then you can set the value of your characteristic to a delimited concatenation of your list of SSIDs.
This would be my high level approach.
Can you tell me how to change or add services, characterstic, attribute in Sample Project "gatt_sever" ?
Thank you.
Who is online
Users browsing this forum: No registered users and 124 guests