Skip to content

ESP32 version of LimiTTer (problem with BLE configuration...) #32

@Philoul

Description

@Philoul

Hello,

I'm trying to make an ESP32 version of LimiTTer freestyle reader, but I can't connect my ESP32 to Xdrip+ (when I scan BT devices on my phone I see my ESP32 (BT name = "LimiTTer") and pair it), but impossible to see my ESP from xdrip+ to received my freestyle raw data (the "Scan Blustooth" don't find any device...

I think that my bluetooth configuration on my ESP32 is not ok but I don't know how to make it work... Can you help me please ?

my bluetooth configuration looks like

in header
#include "BluetoothSerial.h" //Header File for Serial Bluetooth, will be added by default into Arduino
BluetoothSerial ble_Serial; //Object for Bluetooth

in setup
    ble_Serial.begin("LimiTTer"); //Name of your Bluetooth Signal
    for (int i=0; ( (i < MAX_BLE_WAIT) && !(ble_Serial.hasClient()) ); i++)
    {
      delay(1000);
      Serial.print("Waiting for BLE connection ...");
      Serial.println("");
    } 

in Send_Packet function
      ble_Serial.print(packet);

In setup, "ble_Serial.hasClient()" remains "false" (wrong use of it?)

When I arrive on the "ble_Serial.print(packet);" instruction (with a "correct xdrip packet"), I have a crash and reboot of my ESP
xDrip packet: 173647 216 100 17206

"Guru Meditation Error: Core 1 panic'ed (IllegalInstruction). Exception was unhandled."

I am sure my bluetooth configuration on my ESP32 LimiTTer code is not good but I don't know how to solve it...

Can you help me please ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions