The following prompt was sent to ChatGPT.
Please help me with networking using an ESP32. I use PlatformIO in VS Code for my IDE and I'd like to give my program WiFi credentials but not include the password in source control. What I'd like to consider doing is leveraging BLE on the device so that I can run a program on my Mac which would scan for BLE devices which need WiFi credentials and share with them. I'd want to write this program in Swift with Xcode on macOS. Can you help me with how to get my ESP32 to use BLE to be discoverable when so it can get WiFi credentials and also the command-line app built in Swift?
Sure, let's break this down into two main parts:
- Configuring the ESP32 to use BLE for receiving WiFi credentials.