@@ -212,6 +212,13 @@ bool BLEDevice::operator!=(const BLEDevice& device) const
212
212
}
213
213
214
214
215
+ void BLEDevice::startScanning ()
216
+ {
217
+ preCheckProfile ();
218
+ BLEDeviceManager::instance ()->clearAdvertiseCritical ();
219
+ BLEDeviceManager::instance ()->startScanning ();
220
+ }
221
+
215
222
void BLEDevice::startScanning (String name)
216
223
{
217
224
preCheckProfile ();
@@ -243,42 +250,42 @@ BLEDevice BLEDevice::available()
243
250
244
251
bool BLEDevice::hasLocalName () const
245
252
{
246
- return BLEDeviceManager::instance ()->hasLocalName ();
253
+ return BLEDeviceManager::instance ()->hasLocalName (this );
247
254
}
248
255
249
256
bool BLEDevice::hasAdvertisedServiceUuid () const
250
257
{
251
- return BLEDeviceManager::instance ()->hasAdvertisedServiceUuid ();
258
+ return BLEDeviceManager::instance ()->hasAdvertisedServiceUuid (this );
252
259
}
253
260
254
261
bool BLEDevice::hasAdvertisedServiceUuid (int index) const
255
262
{
256
- return BLEDeviceManager::instance ()->hasAdvertisedServiceUuid (index );
263
+ return BLEDeviceManager::instance ()->hasAdvertisedServiceUuid (this , index );
257
264
}
258
265
259
266
int BLEDevice::advertisedServiceUuidCount () const
260
267
{
261
- return BLEDeviceManager::instance ()->advertisedServiceUuidCount ();
268
+ return BLEDeviceManager::instance ()->advertisedServiceUuidCount (this );
262
269
}
263
270
264
271
String BLEDevice::localName () const
265
272
{
266
- return BLEDeviceManager::instance ()->localName ();
273
+ return BLEDeviceManager::instance ()->localName (this );
267
274
}
268
275
269
276
String BLEDevice::advertisedServiceUuid () const
270
277
{
271
- return BLEDeviceManager::instance ()->advertisedServiceUuid ();
278
+ return BLEDeviceManager::instance ()->advertisedServiceUuid (this );
272
279
}
273
280
274
281
String BLEDevice::advertisedServiceUuid (int index) const
275
282
{
276
- return BLEDeviceManager::instance ()->advertisedServiceUuid (index );
283
+ return BLEDeviceManager::instance ()->advertisedServiceUuid (this , index );
277
284
}
278
285
279
286
int BLEDevice::rssi () const
280
287
{
281
- return BLEDeviceManager::instance ()->rssi ();
288
+ return BLEDeviceManager::instance ()->rssi (this );
282
289
}
283
290
284
291
bool BLEDevice::connect ()
0 commit comments