minor: Fix support for cpp

This commit is contained in:
Chirag Atal
2022-07-13 10:40:42 -04:00
parent 2f0f5e0893
commit db2c8d3b58
3 changed files with 24 additions and 0 deletions

View File

@@ -9,9 +9,17 @@
#include <stdint.h>
#include <esp_err.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Enable ESP Insights in the application
*
* @return ESP_OK on success.
* @return error in case of failure.
*/
esp_err_t app_insights_enable(void);
#ifdef __cplusplus
}
#endif

View File

@@ -10,6 +10,10 @@
#include <esp_err.h>
#include <iot_button.h>
#ifdef __cplusplus
extern "C" {
#endif
/** Create a button handle
*
* This is just a wrapper over iot_button_create(). This can be used to register
@@ -40,3 +44,7 @@ button_handle_t app_reset_button_create(gpio_num_t gpio_num, button_active_t act
* @return error in case of failure.
*/
esp_err_t app_reset_button_register(button_handle_t btn_handle, uint8_t wifi_reset_timeout, uint8_t factory_reset_timeout);
#ifdef __cplusplus
}
#endif

View File

@@ -9,6 +9,10 @@
#include <esp_err.h>
#include <esp_event.h>
#ifdef __cplusplus
extern "C" {
#endif
/** ESP RainMaker Event Base */
ESP_EVENT_DECLARE_BASE(APP_WIFI_EVENT);
@@ -36,3 +40,7 @@ typedef enum {
void app_wifi_init();
esp_err_t app_wifi_start(app_wifi_pop_type_t pop_type);
#ifdef __cplusplus
}
#endif