GrowNode
grownode_intl.h File Reference

Data Structures

struct  gn_leaves_list
 
struct  gn_nodes_list
 
struct  gn_config_t
 
struct  gn_node_t
 
struct  gn_leaf_config_t
 
struct  gn_param_val_t
 
struct  gn_leaf_param
 

Typedefs

typedef struct gn_node_tgn_node_handle_intl_t
 
typedef struct gn_leaf_config_tgn_leaf_config_handle_intl_t
 
typedef struct gn_config_tgn_config_handle_intl_t
 
typedef gn_param_val_tgn_param_val_handle_t
 
typedef gn_param_val_tgn_param_val_handle_int_t
 
typedef struct gn_leaf_param gn_leaf_param_t
 
typedef gn_leaf_param_tgn_leaf_param_handle_intl_t
 

Functions

const uint8_t server_cert_pem_start[] asm ("_binary_ca_cert_pem_start")
 
const uint8_t server_cert_pem_end[] asm ("_binary_ca_cert_pem_end")
 
gn_err_t _gn_send_event_to_leaf (gn_leaf_config_handle_intl_t leaf_config, gn_leaf_parameter_event_handle_t evt)
 send event to leaf using xQueueSend. the data will be null terminated. More...
 
gn_err_t _gn_leaf_parameter_update (const gn_leaf_handle_t leaf_config, const char *param, const void *data, const int data_len)
 

Typedef Documentation

◆ gn_config_handle_intl_t

◆ gn_leaf_config_handle_intl_t

◆ gn_leaf_param_handle_intl_t

◆ gn_leaf_param_t

◆ gn_node_handle_intl_t

◆ gn_param_val_handle_int_t

◆ gn_param_val_handle_t

Function Documentation

◆ _gn_leaf_parameter_update()

gn_err_t _gn_leaf_parameter_update ( const gn_leaf_handle_t  leaf_config,
const char *  param,
const void *  data,
const int  data_len 
)

update the parameter value from the event supplied. this is called from event handling system. hence, the parameter value can be changed here only if it has WRITE access

Returns
ESP_OK if parameter is changed,

◆ _gn_send_event_to_leaf()

gn_err_t _gn_send_event_to_leaf ( gn_leaf_config_handle_intl_t  leaf_config,
gn_leaf_parameter_event_handle_t  evt 
)

send event to leaf using xQueueSend. the data will be null terminated.

Parameters
leaf_configthe leaf from where the event is sent
evtthe event to send
Returns
GN_ERR_EVENT_NOT_SENT if not possible to send event

◆ asm() [1/2]

const uint8_t server_cert_pem_end [] asm ( "_binary_ca_cert_pem_end"  )

◆ asm() [2/2]

const uint8_t server_cert_pem_start [] asm ( "_binary_ca_cert_pem_start"  )