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
class AdvertisingCallbacks : public NimBLEExtAdvertisingCallbacks {
void onStopped(NimBLEExtAdvertising* pAdv, int reason, uint8_t instId) override {
/* Check the reason advertising stopped, don't sleep if client is connecting */
Serial.printf("Advertising instance %u stopped\n", instId);
switch (reason) {
case 0:
Serial.printf("Client connecting\n");
return;
case BLE_HS_ETIMEOUT:
Serial.printf("Time expired - sleeping for %" PRIu32 " seconds\n", sleepSeconds);
break;
default:
break;
}
Error: NimBLEExtAdvertisingCallbacks - not a class or struct name
onStopped - member function declared with 'override' does not override a base class member
The text was updated successfully, but these errors were encountered:
From Example
class AdvertisingCallbacks : public NimBLEExtAdvertisingCallbacks {
void onStopped(NimBLEExtAdvertising* pAdv, int reason, uint8_t instId) override {
/* Check the reason advertising stopped, don't sleep if client is connecting */
Serial.printf("Advertising instance %u stopped\n", instId);
switch (reason) {
case 0:
Serial.printf("Client connecting\n");
return;
case BLE_HS_ETIMEOUT:
Serial.printf("Time expired - sleeping for %" PRIu32 " seconds\n", sleepSeconds);
break;
default:
break;
}
Error: NimBLEExtAdvertisingCallbacks - not a class or struct name
onStopped - member function declared with 'override' does not override a base class member
The text was updated successfully, but these errors were encountered: