1 parent
597a18165f
commit
638817678d
1 file changed
+1
-1
+1
-1
@@ -118,7 +118,6 @@ Thanks to wolass https://github.com/wolass for suggesting me HM 10 and dinosd ht
|
|||||||
NULL, /* Task handle. */
|
NULL, /* Task handle. */
|
||||||
taskCore); /* Core where the task should run */
|
taskCore); /* Core where the task should run */
|
||||||
trc(F("ZgatewayBT ESP32 setup done "));
|
trc(F("ZgatewayBT ESP32 setup done "));
|
||||||
BLEDevice::init("");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void coreTask( void * pvParameters ){
|
void coreTask( void * pvParameters ){
|
||||||
@@ -129,6 +128,7 @@ Thanks to wolass https://github.com/wolass for suggesting me HM 10 and dinosd ht
|
|||||||
while(true){
|
while(true){
|
||||||
trc(taskMessage);
|
trc(taskMessage);
|
||||||
delay(TimeBtw_Read);
|
delay(TimeBtw_Read);
|
||||||
|
BLEDevice::init("");
|
||||||
BLEScan* pBLEScan = BLEDevice::getScan(); //create new scan
|
BLEScan* pBLEScan = BLEDevice::getScan(); //create new scan
|
||||||
MyAdvertisedDeviceCallbacks myCallbacks;
|
MyAdvertisedDeviceCallbacks myCallbacks;
|
||||||
pBLEScan->setAdvertisedDeviceCallbacks(&myCallbacks);
|
pBLEScan->setAdvertisedDeviceCallbacks(&myCallbacks);
|
||||||
|
|||||||
Reference in new issue
Block a user