Skip to content

Debugging Strange ESP32 behavior #754

Open
@afnan

Description

@afnan

Hi,
I am using your BLE sketches form ESP32 device in Arduino IDE. I wrote a simple program to advertise and send random int after connection. This program works fine on one board but, if I program another board with the same code, the receiver (i believe server?) does not receive the data. Now, I am sure there is something wrong with the board as if a code works on one it should work on another too.

Just to learn out of it I did some digging. Following are my findings.

  1. GATT connect and disconnect works fine and the board detects the connection
  2. On using nRFConnect app, I see the BLE being advertised and I can connect to it
  3. Strangely upon connection I only see Generic Attribute not others.
  4. If I write the same program to other board, I see all the attributes I am exposing.

I understand this cannot be an easy diagnosis but I am curious why the board works fine i.e reads sensors and stuff but does not expose all services ?

any heading will be appreciated.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions