|
|
@@ -15,6 +15,7 @@
|
|
|
#include <nvs.h>
|
|
|
#include <esp_bt.h>
|
|
|
#include <esp_event.h>
|
|
|
+#include <esp_timer.h>
|
|
|
|
|
|
#ifdef CONFIG_BT_NIMBLE_ENABLED
|
|
|
#include "esp_nimble_hci.h"
|
|
|
@@ -35,7 +36,7 @@ static const char *TAG = "app_prov";
|
|
|
static const char *ssid_prefix = "PROV_";
|
|
|
|
|
|
/* Handler for catching WiFi events */
|
|
|
-static void app_prov_event_handler(void* handler_arg, esp_event_base_t base, int id, void* data);
|
|
|
+static void app_prov_event_handler(void* handler_arg, esp_event_base_t base, int32_t id, void* data);
|
|
|
|
|
|
/* Handlers for wifi_config provisioning endpoint */
|
|
|
extern wifi_prov_config_handlers_t wifi_prov_handlers;
|
|
|
@@ -198,7 +199,7 @@ static void _stop_prov_cb(void * arg)
|
|
|
|
|
|
/* Event handler for starting/stopping provisioning */
|
|
|
static void app_prov_event_handler(void* handler_arg, esp_event_base_t event_base,
|
|
|
- int event_id, void* event_data)
|
|
|
+ int32_t event_id, void* event_data)
|
|
|
{
|
|
|
/* If pointer to provisioning application data is NULL
|
|
|
* then provisioning is not running */
|