wifi_provisioning: fix build warnings due to incorrect event handler argument type

This commit is contained in:
Mahavir Jain
2021-01-11 13:24:00 +05:30
parent 533c124280
commit ccf89cd4bf
10 changed files with 19 additions and 15 deletions

View File

@@ -14,6 +14,7 @@
#include <nvs_flash.h>
#include <nvs.h>
#include <esp_event.h>
#include <esp_timer.h>
#include <protocomm.h>
#include <protocomm_console.h>
@@ -26,7 +27,7 @@
static const char *TAG = "app_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;
@@ -136,7 +137,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 */