File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ class BLEAttribute {
70
70
* @param[in] uuidsize The max size of UUID
71
71
*
72
72
* @return bool true - UUID is the same with data
73
- * false- UUID is not the same with data
73
+ * false- UUID is not the same with data
74
74
*
75
75
* @note none
76
76
*/
@@ -104,7 +104,7 @@ class BLEAttribute {
104
104
void setHandle (uint16_t handle);
105
105
106
106
static unsigned char numAttributes (void );
107
- // The below APIs are for central device to discover the
107
+ // The below APIs are for central device to discover peripheral devices
108
108
virtual void discover (bt_gatt_discover_params_t *params) = 0;
109
109
virtual void discover (const bt_gatt_attr_t *attr,
110
110
bt_gatt_discover_params_t *params) = 0;
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ class BLECharacteristic : public BLEAttribute {
166
166
*
167
167
* @param none
168
168
*
169
- * @return unsigned char The totla number of the notify attributes
169
+ * @return unsigned char The total number of the notify attributes
170
170
*
171
171
* @note none
172
172
*/
@@ -303,8 +303,6 @@ class BLECharacteristic : public BLEAttribute {
303
303
304
304
private:
305
305
void _setValue (const uint8_t value[], uint16_t length);
306
-
307
- private:
308
306
309
307
static unsigned char _numNotifyAttributes;
310
308
static bt_uuid_16_t _gatt_chrc_uuid;
@@ -329,7 +327,7 @@ class BLECharacteristic : public BLEAttribute {
329
327
bt_gatt_attr_t *_attr_cccd;
330
328
331
329
// For central device to subscribe the Notification/Indication
332
- bt_gatt_subscribe_params_t _sub_params;
330
+ bt_gatt_subscribe_params_t _sub_params;
333
331
334
332
bool _reading;
335
333
bt_gatt_read_params_t _read_params;
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ class BLEProfile{
166
166
* @param[in] BLEAttribute * The BLEAttribute object
167
167
*
168
168
* @return bt_gatt_attr_t* NULL - Not found
169
- * Not NULL - The bt_gatt_attr in the stack
169
+ * Not NULL - The bt_gatt_attr in the stack
170
170
*
171
171
* @note none
172
172
*/
@@ -206,7 +206,7 @@ class BLEProfile{
206
206
BLEAttribute** _attributes;
207
207
uint16_t _num_attributes;
208
208
209
- bt_gatt_subscribe_params_t *_sub_param;
209
+ bt_gatt_subscribe_params_t *_sub_param;
210
210
int _sub_param_idx;
211
211
212
212
bt_gatt_discover_params_t _discover_params;
You can’t perform that action at this time.
0 commit comments