mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-22 05:00:55 +01:00
4723b1cc53
Server: Add onSubscribe() callback for characteristics. Adds a new method to NimBLECharacteristicCallbacks that gets called when a client changes it's subscription status. * Remove NimBLE2902 class. As the NimBLE2902 class usefulness was only related to callback functions that were replaced by the NimBLECharacteristicCallbacks:onSubscribe() method this removes the NimBLE2902 class and moves all subscription handling to NimBLECharacteristic. * Update documents and examples to reflect this change. * Add getSubscribedCount() to get the number of subscribed clients.
29 lines
1.4 KiB
CMake
29 lines
1.4 KiB
CMake
# The following lines of boilerplate have to be in your project's
|
|
# CMakeLists in this exact order for cmake to work correctly
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
set(SUPPORTED_TARGETS esp32)
|
|
|
|
idf_component_register(SRCS "src/FreeRTOS.cpp"
|
|
"src/NimBLE2904.cpp"
|
|
"src/NimBLEAddress.cpp"
|
|
"src/NimBLEAdvertisedDevice.cpp"
|
|
"src/NimBLEAdvertising.cpp"
|
|
"src/NimBLEBeacon.cpp"
|
|
"src/NimBLECharacteristic.cpp"
|
|
"src/NimBLEClient.cpp"
|
|
"src/NimBLEDescriptor.cpp"
|
|
"src/NimBLEDevice.cpp"
|
|
"src/NimBLEEddystoneTLM.cpp"
|
|
"src/NimBLEEddystoneURL.cpp"
|
|
"src/NimBLERemoteCharacteristic.cpp"
|
|
"src/NimBLERemoteDescriptor.cpp"
|
|
"src/NimBLERemoteService.cpp"
|
|
"src/NimBLEScan.cpp"
|
|
"src/NimBLESecurity.cpp"
|
|
"src/NimBLEServer.cpp"
|
|
"src/NimBLEService.cpp"
|
|
"src/NimBLEUtils.cpp"
|
|
"src/NimBLEUUID.cpp"
|
|
INCLUDE_DIRS "src"
|
|
REQUIRES bt)
|