-
-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Labels
supportRequest for technical support for a problem that is not a bug or feature requestRequest for technical support for a problem that is not a bug or feature requesttopic: bluetoothIssues involving bluetoothIssues involving bluetoothtopic: communicationIssues related to hub-to-hub/phone/computer communcationIssues related to hub-to-hub/phone/computer communcation
Description
With broadcast implementation, you opened a lot more possibilities than described in the initial comment on this issue. The publish-subscribe model is much better for integrating many hubs than a direct connection. I tried already simple scenario of sharing sensor data between hubs, and now I have a few other ideas, but wanted first to double check with you if it makes sense and how hybrids project can support it.
- I started with reading advertisement data from hubs to see the messages published by
Broadcast.send
on my PC using the bleak library you introduced in pc-communication example. I now analyze the code in the PR to decode the data, but as both BLE and micropython code are new to me it will take some time ;). Maybe you already have some code snippet that you can share? Something like python/bleak implementation of Broadcastreceive
. - Receiving should be easy, but sending probably requires something more (bleak is just the client). What about sending data from non-lego devices in the same format (using broadcast)? I was thinking about using ESP32 with different sensors (like this ultrasonic sensor) to communicate with lego hub. I could build a 4-direction ultra-precise wireless distance sensor for less than $5 and use it instead overpriced Lego 45604 ($45).
What do you think?
Metadata
Metadata
Assignees
Labels
supportRequest for technical support for a problem that is not a bug or feature requestRequest for technical support for a problem that is not a bug or feature requesttopic: bluetoothIssues involving bluetoothIssues involving bluetoothtopic: communicationIssues related to hub-to-hub/phone/computer communcationIssues related to hub-to-hub/phone/computer communcation