mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-23 21:50:55 +01:00
Add docs build.
This commit is contained in:
parent
c743f0e558
commit
86293a8b1d
8 changed files with 20 additions and 6 deletions
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
|
@ -47,3 +47,12 @@ jobs:
|
||||||
. ${IDF_PATH}/export.sh
|
. ${IDF_PATH}/export.sh
|
||||||
cp -r components/esp-nimble-cpp/examples/* .
|
cp -r components/esp-nimble-cpp/examples/* .
|
||||||
idf.py -C ${{ matrix.example }} -DEXTRA_COMPONENT_DIRS=$PWD/components build
|
idf.py -C ${{ matrix.example }} -DEXTRA_COMPONENT_DIRS=$PWD/components build
|
||||||
|
|
||||||
|
build_docs:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Doxygen Action
|
||||||
|
uses: mattnotmitt/doxygen-action@v1.9.1
|
||||||
|
with:
|
||||||
|
working-directory: 'docs/'
|
||||||
|
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
docs/doxydocs
|
|
@ -58,7 +58,7 @@ PROJECT_LOGO =
|
||||||
# entered, it will be relative to the location where doxygen was started. If
|
# entered, it will be relative to the location where doxygen was started. If
|
||||||
# left blank the current directory will be used.
|
# left blank the current directory will be used.
|
||||||
|
|
||||||
OUTPUT_DIRECTORY = .
|
OUTPUT_DIRECTORY = doxydocs
|
||||||
|
|
||||||
# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
|
# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
|
||||||
# directories (in 2 levels) under the output directory of each output format and
|
# directories (in 2 levels) under the output directory of each output format and
|
||||||
|
@ -836,7 +836,7 @@ WARN_NO_PARAMDOC = NO
|
||||||
# Possible values are: NO, YES and FAIL_ON_WARNINGS.
|
# Possible values are: NO, YES and FAIL_ON_WARNINGS.
|
||||||
# The default value is: NO.
|
# The default value is: NO.
|
||||||
|
|
||||||
WARN_AS_ERROR = NO
|
WARN_AS_ERROR = YES
|
||||||
|
|
||||||
# The WARN_FORMAT tag determines the format of the warning messages that doxygen
|
# The WARN_FORMAT tag determines the format of the warning messages that doxygen
|
||||||
# can produce. The string should contain the $file, $line, and $text tags, which
|
# can produce. The string should contain the $file, $line, and $text tags, which
|
||||||
|
|
|
@ -130,6 +130,7 @@ 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);
|
||||||
|
|
||||||
|
@ -152,7 +153,7 @@ public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Called when the pairing procedure is complete.
|
* @brief Called when the pairing procedure is complete.
|
||||||
* @param [in] desc A pointer to the struct containing the connection information.\n
|
* @param [in] connInfo 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,6 +285,7 @@ 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;
|
||||||
|
@ -295,6 +296,7 @@ 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;
|
||||||
|
|
|
@ -151,7 +151,8 @@ public:
|
||||||
int max_events = 0);
|
int max_events = 0);
|
||||||
static bool stopAdvertising(uint8_t inst_id);
|
static bool stopAdvertising(uint8_t inst_id);
|
||||||
static bool stopAdvertising();
|
static bool stopAdvertising();
|
||||||
# else
|
# endif
|
||||||
|
# if !CONFIG_BT_NIMBLE_EXT_ADV || defined(_DOXYGEN_)
|
||||||
static NimBLEAdvertising* getAdvertising();
|
static NimBLEAdvertising* getAdvertising();
|
||||||
static bool startAdvertising();
|
static bool startAdvertising();
|
||||||
static bool stopAdvertising();
|
static bool stopAdvertising();
|
||||||
|
|
|
@ -624,7 +624,6 @@ 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.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -58,7 +58,8 @@ public:
|
||||||
int duration = 0,
|
int duration = 0,
|
||||||
int max_events = 0);
|
int max_events = 0);
|
||||||
bool stopAdvertising(uint8_t inst_id);
|
bool stopAdvertising(uint8_t inst_id);
|
||||||
#else
|
#endif
|
||||||
|
# if !CONFIG_BT_NIMBLE_EXT_ADV || defined(_DOXYGEN_)
|
||||||
NimBLEAdvertising* getAdvertising();
|
NimBLEAdvertising* getAdvertising();
|
||||||
bool startAdvertising();
|
bool startAdvertising();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue