Basic Bluetooth usage #16580
Replies: 2 comments 2 replies
-
the nrf port has a bluetooth implementation which differs from all other ports, therefore most examples for ble will not work. but there is a pr from @andrewleech bringing the standard bluetooth api to the nrf port. I used it in one of my projects and made good experiences. |
Beta Was this translation helpful? Give feedback.
-
This may not be exactly what you're looking for, but I saw "BLE" and "data in advertising packet" and I perked up. Recently, I got it in my head to send temperature/humidity readings in a BLE advertising packet. I'm using an ESP32 as the sender and Home Assistant as the receiver, but the idea is similar I think. I have the code on GitHub: https://github.com/DavesCodeMusings/BLESP32/ I found MicroPython's |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I would like to know if I could use Bluetooth for my project. Currently I have Xiao nRF52840 sense boards (I need the IMU on these) that are connected to LoRa RFM95 modules. I got everything working like it should.
However, I would like to try using Bluetooth on the nRF's. Bluetooth is totally new to me and I hope someone can tell me if what I'm thinking of is even possible using ubluepy.
The messages I send are byte arrays, max ~16 bytes long (see this topic: https://github.com/orgs/micropython/discussions/16533)
Now i found this page: https://pybricks.com/project/micropython-ble-communication/
They use advertisement packets to transfer data without the need to establish a connection.
Sorry if I sound like a total n00b here but if anyone could tell me if this is even possible with ubluepy, that would be a great help.
In the meantime I'll explore the examples (https://github.com/micropython/micropython/tree/master/ports/nrf/examples)
and read up on what Bluetooth is all about.
Thanks for reading!
Beta Was this translation helpful? Give feedback.
All reactions