Skip to content

Commit ce30575

Browse files
committed
Merge branch 'fix/cpp_support' into 'master'
minor: Fix support for cpp See merge request app-frameworks/esp-rainmaker!312
2 parents 2f0f5e0 + db2c8d3 commit ce30575

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

Diff for: examples/common/app_insights/app_insights.h

+8
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,17 @@
99
#include <stdint.h>
1010
#include <esp_err.h>
1111

12+
#ifdef __cplusplus
13+
extern "C" {
14+
#endif
15+
1216
/* Enable ESP Insights in the application
1317
*
1418
* @return ESP_OK on success.
1519
* @return error in case of failure.
1620
*/
1721
esp_err_t app_insights_enable(void);
22+
23+
#ifdef __cplusplus
24+
}
25+
#endif

Diff for: examples/common/app_reset/app_reset.h

+8
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
#include <esp_err.h>
1111
#include <iot_button.h>
1212

13+
#ifdef __cplusplus
14+
extern "C" {
15+
#endif
16+
1317
/** Create a button handle
1418
*
1519
* 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
4044
* @return error in case of failure.
4145
*/
4246
esp_err_t app_reset_button_register(button_handle_t btn_handle, uint8_t wifi_reset_timeout, uint8_t factory_reset_timeout);
47+
48+
#ifdef __cplusplus
49+
}
50+
#endif

Diff for: examples/common/app_wifi/app_wifi.h

+8
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
#include <esp_err.h>
1010
#include <esp_event.h>
1111

12+
#ifdef __cplusplus
13+
extern "C" {
14+
#endif
15+
1216
/** ESP RainMaker Event Base */
1317
ESP_EVENT_DECLARE_BASE(APP_WIFI_EVENT);
1418

@@ -36,3 +40,7 @@ typedef enum {
3640

3741
void app_wifi_init();
3842
esp_err_t app_wifi_start(app_wifi_pop_type_t pop_type);
43+
44+
#ifdef __cplusplus
45+
}
46+
#endif

0 commit comments

Comments
 (0)