@@ -171,7 +171,7 @@ using (var scope = serviceProvider.CreateScope()) // create a scoped DI containe
171171 // init BT layer with right bluetooth address
172172 scope .ServiceProvider .GetService <BluetoothKernel >().BluetoothAddress = bluetoothAddress ;
173173
174- var protocol = scope .GetService <IPoweredUpProtocol >();
174+ var protocol = scope .GetService <ILegoWirelessProtocol >();
175175
176176 await protocol .ConnectAsync (); // also connects underlying BT connection
177177
@@ -209,11 +209,11 @@ Basic Architecture within the SDK
209209+---------+
210210| |
211211| Devices | <-+
212- | | | +-------------------+ +-------------+ +-----+
213- +---------+ +-> | | | | | |
214- | PoweredUpProtocol | <-> | BLE Adapter | <-> | BLE |
215- +---------+ +-> | (w/ Knowlege) | | | | |
216- | | | +-------------------+ +-------------+ +-----+
212+ | | | +----------------------- + +-------------+ +-----+
213+ +---------+ +-> | | | | | |
214+ | ILegoWirelessProtocol | <-> | BLE Adapter | <-> | BLE |
215+ +---------+ +-> | (w/ Knowlege) | | | | |
216+ | | | +----------------------- + +-------------+ +-----+
217217| Hub | <-+
218218| |
219219+---------+
@@ -223,20 +223,20 @@ Basic Architecture within the SDK
223223DI Container Elements
224224
225225````
226- PoweredUpHost +----+
227- + |
228- | |
229- +-------------------- Scoped Service Provider ---------------------+
230- | | | |
231- | v +--->IPoweredUp
232- | LinearMidCalibration + HubFactory | | BluetoothAdapter
233- | | | |
234- | TechnicMediumHub +---+-> PoweredUpProtocol +-> BluetoothKernel + |
235- | + + |
236- | | | |
237- | +-----------------------+--------> DeviceFactory |
238- | |
239- +------------------------------------------------------------------+
226+ PoweredUpHost +------- +
227+ + |
228+ | |
229+ +-------------------- Scoped Service Provider ------------------------ +
230+ | | | |
231+ | v +--->IPoweredUp
232+ | LinearMidCalibration + HubFactory | | BluetoothAdapter
233+ | | | |
234+ | TechnicMediumHub +---+-> LegoWirelessProtocol +-> BluetoothKernel + |
235+ | + + |
236+ | | | |
237+ | +-----------------------+--------> DeviceFactory |
238+ | |
239+ +--------------------------------------------------------------------- +
240240````
241241
242242## Implementation Status
0 commit comments