mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-23 21:50:55 +01:00
Fix example / docs build
This commit is contained in:
parent
629763ddaf
commit
f63a6ddc61
5 changed files with 33 additions and 35 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -36,7 +36,7 @@ jobs:
|
||||||
container: espressif/idf:${{ matrix.idf_ver }}
|
container: espressif/idf:${{ matrix.idf_ver }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: components/esp-nimble-cpp
|
path: components/esp-nimble-cpp
|
||||||
- name: Build examples
|
- name: Build examples
|
||||||
|
@ -51,7 +51,7 @@ jobs:
|
||||||
build_docs:
|
build_docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- name: Doxygen Action
|
- name: Doxygen Action
|
||||||
uses: mattnotmitt/doxygen-action@v1.9.1
|
uses: mattnotmitt/doxygen-action@v1.9.1
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -108,7 +108,7 @@ class CharacteristicCallbacks: public NimBLECharacteristicCallbacks {
|
||||||
/** Handler class for descriptor actions */
|
/** Handler class for descriptor actions */
|
||||||
class DescriptorCallbacks : public NimBLEDescriptorCallbacks {
|
class DescriptorCallbacks : public NimBLEDescriptorCallbacks {
|
||||||
void onWrite(NimBLEDescriptor* pDescriptor) {
|
void onWrite(NimBLEDescriptor* pDescriptor) {
|
||||||
std::string dscVal((char*)pDescriptor->getValue(), pDescriptor->getLength());
|
std::string dscVal = pDescriptor->getValue();
|
||||||
printf("Descriptor witten value: %s\n", dscVal.c_str());
|
printf("Descriptor witten value: %s\n", dscVal.c_str());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -130,7 +130,6 @@ public:
|
||||||
/**
|
/**
|
||||||
* @brief Called when disconnected from the server.
|
* @brief Called when disconnected from the server.
|
||||||
* @param [in] pClient A pointer to the calling client object.
|
* @param [in] pClient A pointer to the calling client object.
|
||||||
* @param [in] reason Contains the reason code for the disconnection.
|
|
||||||
*/
|
*/
|
||||||
virtual void onDisconnect(NimBLEClient* pClient);
|
virtual void onDisconnect(NimBLEClient* pClient);
|
||||||
|
|
||||||
|
@ -153,7 +152,7 @@ public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Called when the pairing procedure is complete.
|
* @brief Called when the pairing procedure is complete.
|
||||||
* @param [in] connInfo A reference to a NimBLEConnInfo instance containing the peer info.\n
|
* @param [in] desc A reference to a NimBLEConnInfo instance containing the peer info.\n
|
||||||
* This can be used to check the status of the connection encryption/pairing.
|
* This can be used to check the status of the connection encryption/pairing.
|
||||||
*/
|
*/
|
||||||
virtual void onAuthenticationComplete(ble_gap_conn_desc* desc);
|
virtual void onAuthenticationComplete(ble_gap_conn_desc* desc);
|
||||||
|
|
|
@ -285,7 +285,6 @@ NimBLEDescriptorCallbacks::~NimBLEDescriptorCallbacks() {}
|
||||||
/**
|
/**
|
||||||
* @brief Callback function to support a read request.
|
* @brief Callback function to support a read request.
|
||||||
* @param [in] pDescriptor The descriptor that is the source of the event.
|
* @param [in] pDescriptor The descriptor that is the source of the event.
|
||||||
* @param [in] connInfo A reference to a NimBLEConnInfo instance containing the peer info.
|
|
||||||
*/
|
*/
|
||||||
void NimBLEDescriptorCallbacks::onRead(NimBLEDescriptor* pDescriptor) {
|
void NimBLEDescriptorCallbacks::onRead(NimBLEDescriptor* pDescriptor) {
|
||||||
(void)pDescriptor;
|
(void)pDescriptor;
|
||||||
|
@ -296,7 +295,6 @@ void NimBLEDescriptorCallbacks::onRead(NimBLEDescriptor* pDescriptor) {
|
||||||
/**
|
/**
|
||||||
* @brief Callback function to support a write request.
|
* @brief Callback function to support a write request.
|
||||||
* @param [in] pDescriptor The descriptor that is the source of the event.
|
* @param [in] pDescriptor The descriptor that is the source of the event.
|
||||||
* @param [in] connInfo A reference to a NimBLEConnInfo instance containing the peer info.
|
|
||||||
*/
|
*/
|
||||||
void NimBLEDescriptorCallbacks::onWrite(NimBLEDescriptor* pDescriptor) {
|
void NimBLEDescriptorCallbacks::onWrite(NimBLEDescriptor* pDescriptor) {
|
||||||
(void)pDescriptor;
|
(void)pDescriptor;
|
||||||
|
|
|
@ -624,6 +624,7 @@ bool NimBLERemoteCharacteristic::setNotify(uint16_t val, notify_callback notifyC
|
||||||
* @brief Subscribe for notifications or indications.
|
* @brief Subscribe for notifications or indications.
|
||||||
* @param [in] notifications If true, subscribe for notifications, false subscribe for indications.
|
* @param [in] notifications If true, subscribe for notifications, false subscribe for indications.
|
||||||
* @param [in] notifyCallback A callback to be invoked for a notification.
|
* @param [in] notifyCallback A callback to be invoked for a notification.
|
||||||
|
* @param [in] response If true, require a write response from the descriptor write operation.
|
||||||
* If NULL is provided then no callback is performed.
|
* If NULL is provided then no callback is performed.
|
||||||
* @return false if writing to the descriptor failed.
|
* @return false if writing to the descriptor failed.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue