Skip to content

Commit 7515dfe

Browse files
committed
fix warnings in BLE_client.ino
1 parent 2ae307a commit 7515dfe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/BLE/examples/BLE_client/BLE_client.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ static void notifyCallback(
2424
uint8_t* pData,
2525
size_t length,
2626
bool isNotify) {
27+
(void)isNotify;
2728
Serial.print("Notify callback for characteristic ");
2829
Serial.print(pBLERemoteCharacteristic->getUUID().toString().c_str());
2930
Serial.print(" of data length ");
@@ -34,9 +35,11 @@ static void notifyCallback(
3435

3536
class MyClientCallback : public BLEClientCallbacks {
3637
void onConnect(BLEClient* pclient) {
38+
(void)pclient; // unused
3739
}
3840

3941
void onDisconnect(BLEClient* pclient) {
42+
(void)pclient; // unused
4043
connected = false;
4144
Serial.println("onDisconnect");
4245
}

0 commit comments

Comments
 (0)