GrowNode
gn_network.c File Reference

Macros

#define TAG   "gn_network"
 

Functions

void _gn_wifi_event_handler (void *arg, esp_event_base_t event_base, int32_t event_id, void *event_data)
 
void _gn_wifi_init_sta (void)
 
void _gn_wifi_get_device_service_name (char *service_name, size_t max)
 
esp_err_t _gn_wifi_custom_prov_data_handler (uint32_t session_id, const uint8_t *inbuf, ssize_t inlen, uint8_t **outbuf, ssize_t *outlen, void *priv_data)
 
esp_err_t _gn_init_wifi (gn_config_handle_intl_t conf)
 
esp_err_t _gn_init_time_sync (gn_config_handle_t conf)
 
void _gn_ota_task (void *pvParameter)
 

Variables

const int GN_WIFI_CONNECTED_EVENT = BIT0
 
const int GN_WIFI_FAIL_EVENT = BIT2
 
const int GN_PROV_END_EVENT = BIT1
 
EventGroupHandle_t _gn_event_group_wifi
 
int s_retry_num = 0
 
gn_config_handle_intl_t _conf
 

Macro Definition Documentation

◆ TAG

#define TAG   "gn_network"

Function Documentation

◆ _gn_init_time_sync()

esp_err_t _gn_init_time_sync ( gn_config_handle_t  conf)

◆ _gn_init_wifi()

esp_err_t _gn_init_wifi ( gn_config_handle_intl_t  conf)

◆ _gn_ota_task()

void _gn_ota_task ( void *  pvParameter)

◆ _gn_wifi_custom_prov_data_handler()

esp_err_t _gn_wifi_custom_prov_data_handler ( uint32_t  session_id,
const uint8_t *  inbuf,
ssize_t  inlen,
uint8_t **  outbuf,
ssize_t *  outlen,
void *  priv_data 
)

◆ _gn_wifi_event_handler()

void _gn_wifi_event_handler ( void *  arg,
esp_event_base_t  event_base,
int32_t  event_id,
void *  event_data 
)

◆ _gn_wifi_get_device_service_name()

void _gn_wifi_get_device_service_name ( char *  service_name,
size_t  max 
)

◆ _gn_wifi_init_sta()

void _gn_wifi_init_sta ( void  )

Variable Documentation

◆ _conf

◆ _gn_event_group_wifi

EventGroupHandle_t _gn_event_group_wifi

◆ GN_PROV_END_EVENT

const int GN_PROV_END_EVENT = BIT1

◆ GN_WIFI_CONNECTED_EVENT

const int GN_WIFI_CONNECTED_EVENT = BIT0

◆ GN_WIFI_FAIL_EVENT

const int GN_WIFI_FAIL_EVENT = BIT2

◆ s_retry_num

int s_retry_num = 0