Skip to content
Shiny.NET

BluetoothLE Hubs Release Notes

Feature
Initial release - SignalR style hubs over Bluetooth LE. A [BleHubClient] interface describes the hub: its methods (Task, Task<T>, IAsyncEnumerable<T>) are client to host calls and its Action events are host to client pushes
Feature
Source generator emits the client proxy, the hub dispatcher, typed pushes (Clients.All.StateChanged(state)) and an IHubContext<THub>.Clients extension property - AOT and trim safe, no reflection, with SBH001-SBH006 diagnostics
Feature
BleHub<TContract> with Context, Clients (All, Others, Caller, Client, Group…), Groups, OnConnectedAsync / OnDisconnectedAsync and Context.Abort()
Feature
IHubContext<THub> to push, disconnect clients and start / stop a single hub from outside a hub - shared GATT services stay up while any of their hubs runs and advertising follows the running hubs
Feature
Generated client proxies with discovery, MTU negotiation, timeouts, cancellation that reaches the hub, ordered push delivery and shared BLE connections across hub clients
Feature
L2CAP file transfers - UploadFile, UploadStream and DownloadFile on the client, a directory backed or custom (IBleHubFileHandler) server on the host