Skip to content

Commit

Permalink
notify
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulaScharf committed Nov 19, 2024
1 parent 9054972 commit 84707d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sensebox-bike-atrai-v2-esp32s3/src/ble/BLEModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ bool BLEModule::writeBLE(const char * characteristicId, uint8_t value, uint8_t v
BLECharacteristic *pCharacteristic = pService->getCharacteristic(characteristicId);
uint8_t buf[2] = {value, value2};
pCharacteristic->setValue(buf,1);
pCharacteristic->notify();
return true;
}

Expand All @@ -85,6 +86,7 @@ bool BLEModule::writeBLE(const char * characteristicId, uint8_t value, uint8_t v
BLECharacteristic *pCharacteristic = pService->getCharacteristic(characteristicId);
uint8_t buf[3] = {value, value2, value3};
pCharacteristic->setValue(buf,1);
pCharacteristic->notify();
return true;
}

Expand All @@ -93,6 +95,7 @@ bool BLEModule::writeBLE(const char * characteristicId, uint8_t value, uint8_t v
BLECharacteristic *pCharacteristic = pService->getCharacteristic(characteristicId);
uint8_t buf[4] = {value, value2, value3, value4};
pCharacteristic->setValue(buf,1);
pCharacteristic->notify();
return true;
}

Expand All @@ -101,6 +104,7 @@ bool BLEModule::writeBLE(const char * characteristicId, uint8_t value, uint8_t v
BLECharacteristic *pCharacteristic = pService->getCharacteristic(characteristicId);
uint8_t buf[5] = {value, value2, value3, value4};
pCharacteristic->setValue(buf,1);
pCharacteristic->notify();
return true;
}

Expand Down

0 comments on commit 84707d5

Please sign in to comment.