8000 Fixes for #101 · kebot-embedded/esp32-snippets@1bc0402 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1bc0402

Browse files
committed
Fixes for nkolban#101
1 parent f9d7d31 commit 1bc0402

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

cpp_utils/BLERemoteCharacteristic.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class BLERemoteCharacteristic {
3838
bool canWriteNoResponse();
3939
BLERemoteDescriptor* getDescriptor(BLEUUID uuid);
4040
std::map<std::string, BLERemoteDescriptor *>* getDescriptors();
41+
uint16_t getHandle();
4142
BLEUUID getUUID();
4243
std::string readValue(void);
4344
uint8_t readUInt8(void);
@@ -61,7 +62,7 @@ class BLERemoteCharacteristic {
6162
esp_gatt_if_t gattc_if,
6263
esp_ble_gattc_cb_param_t* evtParam);
6364

64-
uint16_t getHandle();
65+
6566
BLERemoteService* getRemoteService();
6667
void removeDescriptors();
6768
void retrieveDescriptors();

cpp_utils/BLERemoteDescriptor.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class BLERemoteCharacteristic;
2323
*/
2424
class BLERemoteDescriptor {
2525
public:
26+
uint16_t getHandle();
2627
BLEUUID getUUID();
2728
std::string readValue(void);
2829
uint8_t readUInt8(void);
@@ -48,7 +49,7 @@ class BLERemoteDescriptor {
4849
BLERemoteCharacteristic* m_pRemoteCharacteristic; // Reference to the Remote characteristic of which this descriptor is associated.
4950
FreeRTOS::Semaphore m_semaphoreReadDescrEvt = FreeRTOS::Semaphore("ReadDescrEvt");
5051

51-
uint16_t getHandle();
52+
5253
};
5354
#endif /* CONFIG_BT_ENABLED */
5455
#endif /* COMPONENTS_CPP_UTILS_BLEREMOTEDESCRIPTOR_H_ */

cpp_utils/BLERemoteService.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class BLERemoteService {
3535
std::map<std::string, BLERemoteCharacteristic*>* getCharacteristics();
3636

3737
BLEClient* getClient(void);
38+
uint16_t getHandle();
3839
BLEUUID getUUID(void);
3940
std::string toString(void);
4041

@@ -48,7 +49,6 @@ class BLERemoteService {
4849

4950
// Private methods
5051
void retrieveCharacteristics(void);
51-
uint16_t getHandle();
5252
esp_gatt_id_t* getSrvcId(void);
5353
uint16_t getStartHandle();
5454
uint16_t getEndHandle();

0 commit comments

Comments
 (0)
0