You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Shiny.BluetoothLE v4, use `services.AddBluetoothLE()` (namespace `Shiny`). There is no `UseShiny()` or `AddBle()` call needed.
126
+
:::
127
+
78
128
## Full Example
79
129
80
130
```csharp
@@ -143,7 +193,7 @@ public class DashboardData
143
193
144
194
The BLE transport:
145
195
146
-
1.**Scans** for a peripheral matching the configured service UUID and optional device name filter (or uses a pre-provided peripheral)
196
+
1.**Scans** for a peripheral matching the configured service UUID and optional device name filter (or uses a pre-provided peripheral / discovered device)
147
197
2.**Connects** using Shiny's task-based `ConnectAsync`
148
198
3.**Subscribes** to notifications on the read characteristic via `NotifyCharacteristic`
149
199
4.**Sends commands** by writing bytes to the write characteristic via `WriteCharacteristicAsync`
Copy file name to clipboardExpand all lines: src/content/docs/client/obd/transports.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,15 @@ title: Custom Transports
4
4
5
5
The `IObdTransport` interface abstracts the communication channel between your app and the OBD adapter. The library ships with BLE, but you can implement WiFi, USB, or any other transport.
6
6
7
+
For transports that support discovery (BLE, WiFi), implement `IObdDeviceScanner` as well:
0 commit comments