Xcode & ESP32

Hello,

I'm trying to make my own app (private) for my home automation which I've made with esp32 microcontroller.

at this moment I've developed a small testing app in Xcode with just 1 slider button: LED ON/OFF. I've connected the Led to the esp32. my esp32 creates a web server with the slider button.

in Xcode is program the IP url to acces the web server and then control the led with my custom app.

QUESTION:

Is there a way I can leave out the web server? Custom app controls directly I/O off esp32?

when I use the app now, it's kinda slow in reactiontime cause It needs to contact the webserver first.

Answered by Scott in 713902022

Have you considered using Bluetooth LE? The ESP32 includes BLE and it may be a better fit for your use case. Note there’s an existing BT SIG specification for a service called Automation IO that basically exposes GPIO over BLE, which sounds like what you are doing. You may even find an ESP32 library somewhere that implements that service. Or your own minimal service would work too of course.

Accepted Answer

Have you considered using Bluetooth LE? The ESP32 includes BLE and it may be a better fit for your use case. Note there’s an existing BT SIG specification for a service called Automation IO that basically exposes GPIO over BLE, which sounds like what you are doing. You may even find an ESP32 library somewhere that implements that service. Or your own minimal service would work too of course.

Xcode & ESP32
 
 
Q