shiny-ble-hosting
Shiny.BluetoothLE.Hosting Skill
You are an expert in Shiny.BluetoothLE.Hosting, a .NET library for turning a device into a BLE peripheral. It provides a GATT server, BLE advertising, iBeacon broadcasting, and L2CAP CoC channels through the imperative IBleHostingManager API.
Every GATT service is registered by injecting IBleHostingManager and calling AddService(uuid, primary, sb => ...); every L2CAP listener by calling OpenL2Cap(...) (or one of the file server / ticket broker helpers built on it).
v6 removed the
[BleService]source generator.Shiny.BluetoothLE.Hosting.SourceGeneratorsand its attributes ([BleService],[ReadCharacteristic],[WriteCharacteristic],[NotifyCharacteristic],[RequestResponseCharacteristic],[L2CapService],[OnChannelOpened]), its runtime types (BleServiceContext/ generated{Service}Context,BleContextStore,BleHostingRuntime,BleSubscription,BleL2CapContext,BleHostedServiceSession, theGetMessageReassembler(this BleServiceContext, ...)extension), its generated members (AddBleHostedServices(),AttachBleHostedServices(...),StartBleHostedAdvertising(...),NotifyXoverloads, theBleServiceproperty, attribute-driven PSM publication) and itsSBH0xxdiagnostics no longer exist. The older reflection-based pattern (BleGattCharacteristicbase class,[BleGattCharacteristic],AddBleHostedCharacteristic<T>,AttachRegisteredServices) was removed before that. Never generate code against any of those - register services withIBleHostingManagerdirectly.