forked from h2zero/esp-nimble-cpp
Add missing NimBLEUtils and NimBLEConnInfo includes to NimBLEDevice.h
In some cases compilation of examples would fail due to missing these headers so they should be included in NimBLEDevice.h
This commit is contained in:
1 parent
3e0ce87a94
commit
ec4d4c43e1
3 files changed
+13
-9
No files matched your search
+4
-1
@@ -5,7 +5,10 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
## Fixed
|
## Fixed
|
||||||
- `NimBLEHIDDevice::getOutputReport` will now return the correct characteristic.
|
- `NimBLEHIDDevice::getOutputReport` will now return the correct characteristic.
|
||||||
- Compile error when central is disabled.
|
- Compile error when central is disabled, class `NimBLEServer` has no member named `m_pClient`.
|
||||||
|
|
||||||
|
## Changed
|
||||||
|
- Added missing includes for `NimBLEConnInfo` and `NimBLEUtils` to `NimBLEDevice.h`.
|
||||||
|
|
||||||
## [2.0.0] 2024-12-14
|
## [2.0.0] 2024-12-14
|
||||||
|
|
||||||
|
|||||||
@@ -21,17 +21,12 @@
|
|||||||
#include "nimconfig.h"
|
#include "nimconfig.h"
|
||||||
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
|
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
|
||||||
|
|
||||||
class NimBLEDescriptor;
|
|
||||||
class NimBLEDescriptorCallbacks;
|
|
||||||
|
|
||||||
# include "NimBLELocalValueAttribute.h"
|
# include "NimBLELocalValueAttribute.h"
|
||||||
# include "NimBLECharacteristic.h"
|
|
||||||
# include "NimBLEUUID.h"
|
|
||||||
# include "NimBLEAttValue.h"
|
|
||||||
# include "NimBLEConnInfo.h"
|
|
||||||
|
|
||||||
# include <string>
|
# include <string>
|
||||||
|
|
||||||
|
class NimBLECharacteristic;
|
||||||
|
class NimBLEDescriptorCallbacks;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief A model of a BLE descriptor.
|
* @brief A model of a BLE descriptor.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -282,5 +282,11 @@ class NimBLEDevice {
|
|||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
# if defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL) || defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)
|
||||||
|
# include "NimBLEConnInfo.h"
|
||||||
|
# endif
|
||||||
|
|
||||||
|
# include "NimBLEUtils.h"
|
||||||
|
|
||||||
#endif // CONFIG_BT_ENABLED
|
#endif // CONFIG_BT_ENABLED
|
||||||
#endif // NIMBLE_CPP_DEVICE_H_
|
#endif // NIMBLE_CPP_DEVICE_H_
|
||||||
Reference in new issue
Block a user