rename BLEBas update() to write() for consistency
This commit is contained in:
1 parent
5f091b0a82
commit
7c932db50f
4 files changed
+4
-4
No files matched your search
@@ -53,7 +53,7 @@ void setup()
|
||||
|
||||
// Start BLE Battery Service
|
||||
blebas.begin();
|
||||
blebas.update(100);
|
||||
blebas.write(100);
|
||||
|
||||
// Set up Advertising Packet
|
||||
setupAdv();
|
||||
|
||||
@@ -69,7 +69,7 @@ void setup()
|
||||
// Start the BLE Battery Service and set it to 100%
|
||||
Serial.println("Configuring the Battery Service");
|
||||
blebas.begin();
|
||||
blebas.update(100);
|
||||
blebas.write(100);
|
||||
|
||||
// Setup the Heart Rate Monitor service using
|
||||
// BLEService and BLECharacteristic classes
|
||||
|
||||
@@ -54,7 +54,7 @@ err_t BLEBas::begin(void)
|
||||
return ERROR_NONE;
|
||||
}
|
||||
|
||||
void BLEBas::update(uint8_t level)
|
||||
void BLEBas::write(uint8_t level)
|
||||
{
|
||||
_battery.write(level);
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ class BLEBas : public BLEService
|
||||
|
||||
virtual err_t begin(void);
|
||||
|
||||
void update(uint8_t level);
|
||||
void write (uint8_t level);
|
||||
void notify(uint8_t level);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user