Esp32 iBeacon read major and minor

Hello. I need read from some iBeacon sensors "major" and "minor".
I have MAC address and UUID.
Do you have some example how can read major and minor by ESP32?
I cant find it on internet for long time.

that was discussed in the past

may be a good starting point:

I saw this discuss but its not helped me :confused:

your answer did not help me (help you) either... :slight_smile:

why? what did not work? what did you try?

1 Like

Its work now I had there seme code error but its okey now,
But I cant decode this value from "minor".

Dear

Im reading minor data from TMPS BLE sensor. In this minor 16bit number value is encode Pressure value (bar), Temperature (°C) and also battery status I think.
I can't figure out how to decode this value but I can simulate this.
For example I can show.

read value - 39976 = 3.9 Bar = 0 °C
read value - 41000 = 4.0 Bar = 0 °C
read value - 42024 = 4.1 Bar = 0 °C
read value - 51000 = 5.0 Bar = 16 °C

This is minimum and maximum values for Temperature range in same pressure value
read value - 46848 = 4.6 Bar = -40 °C
read value - 46974 = 4.6 Bar = 86 °C
read value - 46975 = 4.6 Bar = 86 °C + Battery Alarm

Can you help me find some logic how can I decode this value in this case please?

please read How to get the best out of this forum and post accordingly.

So we need code (including code tags), details about your set up (with clickable links), a schema of your wiring, power etc...

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.