WiFi Logger component  1.0
WiFi Logger component, uses wifi to output logs
Macros | Functions
websocket_handler.h File Reference
#include <stdio.h>
#include <string.h>
#include "esp_wifi.h"
#include "esp_system.h"
#include "nvs_flash.h"
#include "esp_event.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "esp_log.h"
#include "esp_websocket_client.h"
Include dependency graph for websocket_handler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define WEBSOCKET_HOST_URI   CONFIG_SERVER_WEBSOCKET_URI
 

Functions

void websocket_event_handler (void *handler_args, esp_event_base_t base, int32_t event_id, void *event_data)
 
esp_websocket_client_handle_t websocket_network_manager ()
 
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)
 

Macro Definition Documentation

◆ WEBSOCKET_HOST_URI

#define WEBSOCKET_HOST_URI   CONFIG_SERVER_WEBSOCKET_URI

Function Documentation

◆ websocket_close_network_manager()

void websocket_close_network_manager ( esp_websocket_client_handle_t  network_handle)

◆ websocket_event_handler()

void websocket_event_handler ( void *  handler_args,
esp_event_base_t  base,
int32_t  event_id,
void *  event_data 
)

◆ websocket_network_manager()

esp_websocket_client_handle_t websocket_network_manager ( )

◆ websocket_send_data()

int websocket_send_data ( esp_websocket_client_handle_t  network_handle,
char *  payload 
)