Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window / door sensor #23

Closed
evilknivel opened this issue Feb 12, 2021 · 4 comments
Closed

window / door sensor #23

evilknivel opened this issue Feb 12, 2021 · 4 comments

Comments

@evilknivel
Copy link

Hi,

and first thank you for this beautiful library!

Is it possible so get it working as an door / window sensor?

@floe
Copy link
Owner

floe commented Feb 14, 2021

Not sure what you mean. On its own, the library can only control a nRF24L01+ chip to send and receive Bluetooth LE advertisements. You'll need to add a) an actual sensor to detect the window state and b) code to make it send something once the sensor is triggered.

@evilknivel
Copy link
Author

Hi ohh sorry maybe i make it not totally clear what i mean. I thought the function of an ble device is declared by the service UUID so that other devices can recognize ist als such. Or am i wrong?

@floe
Copy link
Owner

floe commented Feb 15, 2021

Ah, now I get it. Yes, you're right, but AFAICT there's no UUID for door/window sensor. The full list is at https://btprodspecificationrefs.blob.core.windows.net/assigned-values/16-bit%20UUID%20Numbers%20Document.pdf - I've found
"GATT Service - 0x183B - Binary Sensor" which might be somewhat suitable, but using the full GATT protocol won't work with the bare nRF24L01+ device, you would need a dedicated BTLE transceiver for that (e.g. something based on the nRF51/52).

@evilknivel
Copy link
Author

Ahh okay, vielen Dank, dass Sie sich die Zeit genommen haben, um zu antworten!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants