WiFi Logger component  1.0
WiFi Logger component, uses wifi to output logs
websocket_handler.h
Go to the documentation of this file.
1 #ifndef WEBSOCKET_HANDLER_C
2 #define WEBSOCKET_HANDLER_C
3 
4 #include <stdio.h>
5 #include <string.h>
6 #include "esp_wifi.h"
7 #include "esp_system.h"
8 #include "nvs_flash.h"
9 #include "esp_event.h"
10 #include "freertos/FreeRTOS.h"
11 #include "freertos/task.h"
12 #include "freertos/event_groups.h"
13 #include "esp_log.h"
14 #include "esp_websocket_client.h"
15 #include "esp_event.h"
16 
17 
18 #define WEBSOCKET_HOST_URI CONFIG_SERVER_WEBSOCKET_URI
19 
20 void websocket_event_handler(void *handler_args, esp_event_base_t base, int32_t event_id, void *event_data);
21 esp_websocket_client_handle_t websocket_network_manager();
22 int websocket_send_data(esp_websocket_client_handle_t network_handle, char* payload);
23 void websocket_close_network_manager(esp_websocket_client_handle_t network_handle);
24 
25 #endif
int websocket_send_data(esp_websocket_client_handle_t network_handle, char *payload)
void websocket_close_network_manager(esp_websocket_client_handle_t network_handle)
esp_websocket_client_handle_t websocket_network_manager()
void websocket_event_handler(void *handler_args, esp_event_base_t base, int32_t event_id, void *event_data)