Blutooth BLE Automatic Connection

Hello, I've started a small project to control an LED and send text on an ESP32. My first version connects to the ESP32 by clicking on a list, and everything works fine (BLE_Control.aia).

In version 2, I'm trying an automatic connection with BLE1.ConnectToDeviceWithServiceAndName

(BLE_Control-V2.aia). But nothing happens... In desperation, on the working program, I display the "DeviceName," and it's OK, along with the list of connected services_UUIDs—there are 3. Is that my problem?

BLE_Control_V2.aia (450.1 KB)
BLE_Control.aia (451.1 KB)

To be clear; I've consulted a lot of topics in this forum and haven't found anything conclusive.

I tried to draw inspiration from this link for automatic connection to BLE

Link