@@ -67,8 +67,8 @@ class BLECharacteristic : public BLEAttribute {
6767 * @param maxLength Maximum data length required for characteristic value (<= BLE_MAX_ATTR_DATA_LEN)
6868 */
6969 BLECharacteristic (const char * uuid,
70- const uint8_t properties,
71- const uint16_t maxLength);
70+ const unsigned char properties,
71+ const unsigned short maxLength);
7272
7373 /* *
7474 * Constructor for BLE Characteristic
@@ -78,7 +78,7 @@ class BLECharacteristic : public BLEAttribute {
7878 * @param value String value for characteristic (string length (<= BLE_MAX_ATTR_DATA_LEN))
7979 */
8080 BLECharacteristic (const char * uuid,
81- const uint8_t properties,
81+ const unsigned char properties,
8282 const char * value);
8383
8484 /* *
@@ -90,51 +90,51 @@ class BLECharacteristic : public BLEAttribute {
9090 *
9191 * @return BleStatus indicating success or error
9292 */
93- BleStatus setValue (const uint8_t value[], uint16_t length);
93+ BleStatus setValue (const unsigned char value[], unsigned short length);
9494
9595 /* *
9696 * Get the property mask of the Characteristic
9797 *
9898 * @return uint8_t property mask of the Characteristic
9999 */
100- uint8_t properties (void ) const ;
100+ unsigned char properties (void ) const ;
101101
102102 /* *
103103 * Get the size of the Characteristic
104104 *
105- * @return uint16_t size of characateristic in bytes
105+ * @return unsigned size of characateristic in bytes
106106 */
107- uint16_t valueSize (void ) const ;
107+ unsigned short valueSize (void ) const ;
108108
109109 /* *
110110 * Get data pointer to the value of the Characteristic
111111 *
112- * @return const uint8_t * pointer to the value of the Characteristic
112+ * @return const unsigned char * pointer to the value of the Characteristic
113113 */
114- const uint8_t * value (void ) const ;
114+ const unsigned char * value (void ) const ;
115115
116116 /* *
117117 * Get the length of the value of the Characteristic
118118 *
119- * @return uint16_t size of characateristic value in bytes
119+ * @return unsigned short size of characateristic value in bytes
120120 */
121- uint16_t valueLength () const ;
121+ unsigned short valueLength () const ;
122122
123- uint8_t operator [] (int offset) const ;
123+ unsigned char operator [] (int offset) const ;
124124
125125 /* *
126126 * Has the value of the Characteristic been written by a central
127127 *
128- * @return boolean_t true is central has updated characteristic value, otherwise false
128+ * @return bool true is central has updated characteristic value, otherwise false
129129 */
130- boolean_t written (void );
130+ bool written (void );
131131
132132 /* *
133133 * Is a central listening for notifications or indications of the Characteristic
134134 *
135- * @return boolean_t true is central is subscribed, otherwise false
135+ * @return bool true is central is subscribed, otherwise false
136136 */
137- boolean_t subscribed (void );
137+ bool subscribed (void );
138138
139139 /* *
140140 * Provide a function to be called when events related to this Characteristic are raised
@@ -163,11 +163,12 @@ class BLECharacteristic : public BLEAttribute {
163163 void _setValue (const uint8_t value[], uint16_t length);
164164
165165private:
166- uint8_t _properties;
167- uint16_t _max_len;
168- uint8_t _data[BLE_MAX_ATTR_DATA_LEN];
169- uint16_t _data_len;
170- boolean_t _written;
166+ unsigned char _properties;
167+ unsigned short _max_len;
168+ unsigned char _data[BLE_MAX_ATTR_DATA_LEN];
169+ unsigned short _data_len;
170+ bool _written;
171+
171172 uint16_t _cccd_value;
172173 uint16_t _value_handle;
173174 uint16_t _cccd_handle;
0 commit comments