Comments (2)
Hi @JulienNabaztag, thanks for trying my project.
BLE devices, when paired, are undetectable. For this reason it is not possible to determine their presence. In your case I assume the device was detected while it was unpaired and therefore it was possible to read the battery value which is saved for 12h before reading it again, after this period, if the device is not detected, the battery value will be -1. Alternativelly you have moved the device too far from the ESP32.
Give a try unparing the device, if it is paired, or move it near the ESP32 to see if something changes.
In order to read the others values you should implement a function similar to my batteryLevel that you find in the main.ino where, from the service_BATT_UUID (0x180F), I read the char_BATT_UUID (0x2A19) characteristic. Obbviously you will have to use appropriate services and characteristics. This link may be useful for you
Getting Started with ESP32 Bluetooth Low Energy (BLE) on Arduino IDE to understand how to use the values you extracted from the python.
The project does not support iBeacon UUID but recognizes devices only by their mac-address
Regards.
from esp32_bletracker.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from esp32_bletracker.
Related Issues (20)
- FHEM support request HOT 16
- Add the capability to set a static IP
- FHEM Mode exceptions HOT 49
- Friendly name to the MAC address HOT 2
- MAX_NON_ADV_PERIOD in control panel HOT 3
- Retain State and Battery level after black-out HOT 2
- Wrong time reported in the logs HOT 2
- Report the date and time of the last battery level detection HOT 2
- Last battery level status HOT 9
- New firmware release notification HOT 2
- Multiple esp32 network HOT 4
- Noob needs help HOT 2
- Running extremely slow? HOT 3
- Build problem HOT 7
- Implement a Mailbox Sensor,Led and MQTT message HOT 4
- reset HOT 7
- Feature Request: Start scan via html request HOT 14
- sysinfo is published not after 2 Minutes
- The status of the gateway is unstable HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32_bletracker.