@@ -46,13 +46,14 @@ class BLERemoteCharacteristic {
46
46
uint16_t readUInt16 ();
47
47
uint32_t readUInt32 ();
48
48
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 );
52
52
std::string toString ();
53
53
uint8_t * readRawData ();
54
- BLERemoteService* getRemoteService ();
55
54
55
+ BLERemoteService* getRemoteService ();
56
+
56
57
private:
57
58
BLERemoteCharacteristic (uint16_t handle, BLEUUID uuid, esp_gatt_char_prop_t charProp, BLERemoteService* pRemoteService);
58
59
friend class BLEClient ;
@@ -74,8 +75,8 @@ class BLERemoteCharacteristic {
74
75
FreeRTOS::Semaphore m_semaphoreRegForNotifyEvt = FreeRTOS::Semaphore(" RegForNotifyEvt" );
75
76
FreeRTOS::Semaphore m_semaphoreWriteCharEvt = FreeRTOS::Semaphore(" WriteCharEvt" );
76
77
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;
79
80
80
81
// We maintain a map of descriptors owned by this characteristic keyed by a string representation of the UUID.
81
82
std::map<std::string, BLERemoteDescriptor*> m_descriptorMap;
0 commit comments