Hi ,
What I am trying to achieve is to send the Mac, SSID , Password of a network to an ESP client from an ESP server so that they can read it . I have used the example the BLE chapter and yes I can see the ‘Hello World says Neil’ in the unknown characteristic but when I use the BLE scanner code I can t see ‘Hello World ‘ . Where do I need to put my data so I can send from one ESP and receive it on the other ?
Hi.
The 7.3 Project in page 404 of the “Learn ESP32 with Arduino IDE” eBook shows how to “send” data from one board to the other.
Maybe that project is a better way to understand how to “send” data from one board to the other via BLE.
Check that out and let me know if you need further help.
Regards,
Sara
We also have this project about Wi-Fi provisioning via BLE that might be useful for your application:
– https://randomnerdtutorials.com/esp32-wi-fi-provisioning-ble-arduino/
Hi Sara, the Wi-Fi provisioning via BLE is exactly what I wanted and works much better than the approach I was trying to take. Many thanks
Hi Sara , Just realised in the excitement of getting the App to work Im still need to send an additional field, the target ESP is being used for UDP , the port is fixed but I need to send the IP address of the local PC. Can I put the IP address in the Service Key Field and if so can this be passed from the mobile App ?
Hi.
I don’t think so.
The service key field is used for Wi-Fi provisioning via Access Point.
I’m not sure how to modify the app to send extra information.
An alternative is to set a static IP address to your board or a name on your local network using mDNS.
Regards,
Sara
Hi Sara ,
Its the other way around , I need to send to the ESP32 the host IP, SSID and password so that it can then connect to the local server via UDP. My original approach was to use a BLE5 setup and add the values to the manufacturing data but I cant find any examples that compile for the ESP32-S3 , the other method I was considering was to use WiFi Manager Lite but that also wont compile for an ESP-S3 so Im running out of ideas .
Hi Sara,
OK I can use the mobile App approach , as the ESP gets an IP address which I can send back with last byte as 255 and my UDP listener on the host PC will pick it up as Im using a fixed port. I would prefer to use the WiFi Manager route as it mean s I dont need a mobile App, are there any versions that you know of either Lite or standard that compile on an ESP-S3 all the ones I can find work on older hardware even say they are compatable with an S3 but on compile error satying they are only to be used with a ESP8266.
Many thks
Will