-
Couldn't load subscription status.
- Fork 330
Open
Labels
enhancementNew feature or requestNew feature or request
Description
What about wrapping bleak to TCP or WebSocket bridge?
I think it is possible to make bleak wrapper that will allow BleakScanner and BleakClient usage over tcp/WebSocket, maybe with grpc.
Fort this approach needed:
- Communication protocol, and packet data type, few variants:
- Use ATT/GATT simulation
- Use json, grpc
- Custom binary format
- Server side:
- discover/manage ble devices
- control connections/actions/events
- Client side:
- bleak-compatible backend that uses connection to server (should be simple with known protocol)
- Running client or scanner like
BleakScanner.discover(device='ws://ip:port)or BleakClient(device='ws://ip:port)
I can try to create simple example how can it work both side
The main idea is not to create some high-level abstraction, but to implement a virtual BLE Dongle and forward it between the server and the client
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request