IOS Blynk APP bluetooth issue. Doesn't connect to any device

Before creating the topic

  1. Add details :
    • esp32
    • latest IOS (14.2)
    • Blynk server
    • tried 0.6.1 and 0.5.4
    • code:
    #define BLYNK_PRINT Serial

    #define BLYNK_USE_DIRECT_CONNECT

    #include <BlynkSimpleEsp32_BLE.h>
    #include <BLEDevice.h>
    #include <BLEServer.h>

    // You should get Auth Token in the Blynk App.
    // Go to the Project Settings (nut icon).
    char auth[] = "************************";

    void setup()
    {
      // Debug console
      Serial.begin(9600);

      Serial.println("Waiting for connections...");

      Blynk.setDeviceName("Blynk");

      Blynk.begin(auth);
    }

    void loop()
    {
      Blynk.run();
    }

Hi Guys,
First of all, I really like the idea of blynk! Thanks for implementation!

I tried for a couple of hours to implement a first hello world to get a connection between my esp32 board and ios blynk app. After some tries I looked in my ios settings and I found out, that blynk app doesn’t have rights to use bluetooth. The app doesn’t even request it, like other apps, when those try to connect with a bluetooth device.

I were able to connect to my esp32 with an app called “BLE Hero”. That app asked me at my first use of the app, to confirm that it is allowed to use bluetooth. My iPhone connected. I saw my esp32 in my bluetooth settings, as connected and I see the connection on my serial monitor of Arduino IDE.

But even esp32 and iPhone was connected, blynk app still telling me, that it is not connected. So this is an issue with the blynk app.

So, have you manually granted Blynk access to Bluetooth in Settings?

Have you added the BLE widget to your app project?
If so, what do you see when you put the Blynk project into stopped (edit) mode and click the BLE widget then the “Connect BLE Device” button?

I think this is more to do with the way that permissions have changed in iOS 13+ rather than Blynk per se.

Pete.

1 Like

Hi Pete,
Thanks for the real quick answere!
The BLE Widget did the job!

After I added the BLE Widget(it is in the widget box, under category “other”) I could grant buetooth access in the ios settings. Couldn’t do that before I added the widget.

I didn’t think that something like that would be needed, cause I chose BLE in the first place in project creation process and all bluetooth settings like device name and auth token.

Best Regards, Niels