Skip to content

Commit 65211a1

Browse files
committed
Revert "Update BLERemoteCharacteristic.h"
This reverts commit fe2e592.
1 parent 172b8ac commit 65211a1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/BLERemoteCharacteristic.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,14 @@ class BLERemoteCharacteristic {
4646
uint16_t readUInt16();
4747
uint32_t readUInt32();
4848
void registerForNotify(notify_callback _callback, bool notifications = true);
49-
bool writeValue(uint8_t* data, size_t length, bool response = false);
50-
bool writeValue(std::string newValue, bool response = false);
51-
bool writeValue(uint8_t newValue, bool response = false);
49+
void writeValue(uint8_t* data, size_t length, bool response = false);
50+
void writeValue(std::string newValue, bool response = false);
51+
void writeValue(uint8_t newValue, bool response = false);
5252
std::string toString();
5353
uint8_t* readRawData();
54-
BLERemoteService* getRemoteService();
5554

55+
BLERemoteService* getRemoteService();
56+
5657
private:
5758
BLERemoteCharacteristic(uint16_t handle, BLEUUID uuid, esp_gatt_char_prop_t charProp, BLERemoteService* pRemoteService);
5859
friend class BLEClient;
@@ -74,8 +75,8 @@ class BLERemoteCharacteristic {
7475
FreeRTOS::Semaphore m_semaphoreRegForNotifyEvt = FreeRTOS::Semaphore("RegForNotifyEvt");
7576
FreeRTOS::Semaphore m_semaphoreWriteCharEvt = FreeRTOS::Semaphore("WriteCharEvt");
7677
std::string m_value;
77-
uint8_t *m_rawData = nullptr;
78-
notify_callback m_notifyCallback = nullptr;
78+
uint8_t *m_rawData;
79+
notify_callback m_notifyCallback;
7980

8081
// We maintain a map of descriptors owned by this characteristic keyed by a string representation of the UUID.
8182
std::map<std::string, BLERemoteDescriptor*> m_descriptorMap;

0 commit comments

Comments
 (0)