Go Down

Topic: Check bluetooth connection before sending data! (Read 159 times) previous topic - next topic

danielslira

Hi there,

Probably someone has already had this problem, but I couldn't find any topic about this in the forum.

Basically, I'm using an ESP32 to send data via bluetooth to a pc and store the data on an excel spreadsheet using PLX-DAQ. However, before I connect the ESP to the pc, it's already sending data, so this data is lost.
So I want my ESP to check if it's connected before sending data. Could anyone help me?

Nick_Pyner

This sounds like a nonsense scenario which is probably solved with the reset button. There has to be a start point in time and, if the data is being sent before you are ready to receive it, the best solution is not to generate it.

Robin2

So I want my ESP to check if it's connected before sending data. Could anyone help me?
The only way to check for a connection is to send a message and get an expected response.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

Go Up