MeterLogger
|
#include "ets_sys.h"
#include "os_type.h"
#include "lwip/inet.h"
#include "lwip/err.h"
#include "lwip/pbuf.h"
#include "lwip/mem.h"
#include "lwip/tcp_impl.h"
#include "lwip/udp.h"
#include "lwip/app/espconn_udp.h"
Go to the source code of this file.
Enumerations | |
enum | send_opt { ESPCONN_SENDTO, ESPCONN_SEND } |
Functions | |
static void ICACHE_FLASH_ATTR | espconn_data_sentcb (struct espconn *pespconn) |
static void ICACHE_FLASH_ATTR | espconn_data_sent (void *arg, enum send_opt opt) |
err_t ICACHE_FLASH_ATTR | espconn_udp_sent (void *arg, uint8 *psent, uint16 length) |
err_t ICACHE_FLASH_ATTR | espconn_udp_sendto (void *arg, uint8 *psent, uint16 length) |
static void ICACHE_FLASH_ATTR | espconn_udp_recv (void *arg, struct udp_pcb *upcb, struct pbuf *p, struct ip_addr *addr, u16_t port) |
void ICACHE_FLASH_ATTR | espconn_udp_disconnect (espconn_msg *pdiscon) |
sint8 ICACHE_FLASH_ATTR | espconn_udp_server (struct espconn *pespconn) |
sint8 ICACHE_FLASH_ATTR | espconn_igmp_leave (ip_addr_t *host_ip, ip_addr_t *multicast_ip) |
sint8 ICACHE_FLASH_ATTR | espconn_igmp_join (ip_addr_t *host_ip, ip_addr_t *multicast_ip) |
Variables | |
espconn_msg * | plink_active |
uint8 | default_interface |
enum send_opt |
Enumerator | |
---|---|
ESPCONN_SENDTO | |
ESPCONN_SEND |
Definition at line 32 of file espconn_udp.c.
|
static |
Definition at line 47 of file espconn_udp.c.
References _comon_pkt::cntr, ESPCONN_CONNECT, espconn_data_sentcb(), ESPCONN_SEND, espconn_udp_sendto(), espconn_udp_sent(), ICACHE_FLASH_ATTR, NULL, _espconn_msg::pcommon, _espconn_msg::pespconn, _comon_pkt::ptrbuf, and espconn::state.
Referenced by espconn_udp_sendto(), and espconn_udp_sent().
|
static |
Definition at line 36 of file espconn_udp.c.
References NULL, and espconn::sent_callback.
Referenced by espconn_data_sent().
sint8 ICACHE_FLASH_ATTR espconn_igmp_join | ( | ip_addr_t * | host_ip, |
ip_addr_t * | multicast_ip | ||
) |
Definition at line 414 of file espconn_udp.c.
References ERR_OK, ESPCONN_OK, ESPCONN_UDP_DEBUG, and LWIP_DEBUGF.
sint8 ICACHE_FLASH_ATTR espconn_igmp_leave | ( | ip_addr_t * | host_ip, |
ip_addr_t * | multicast_ip | ||
) |
Definition at line 396 of file espconn_udp.c.
References ERR_OK, ESPCONN_OK, ESPCONN_UDP_DEBUG, ICACHE_FLASH_ATTR, and LWIP_DEBUGF.
void ICACHE_FLASH_ATTR espconn_udp_disconnect | ( | espconn_msg * | pdiscon | ) |
Definition at line 338 of file espconn_udp.c.
References espconn_list_delete(), ICACHE_FLASH_ATTR, NULL, os_free, _comon_pkt::pcb, and _espconn_msg::pcommon.
Referenced by espconn_delete().
|
static |
Definition at line 283 of file espconn_udp.c.
References ESPCONN_UDP_DEBUG, ip_info::ip, ip4_addr1_16, ip4_addr2_16, ip4_addr3_16, ip4_addr4_16, ip_addr_netcmp, _esp_udp::local_ip, LWIP_DEBUGF, ip_info::netmask, NULL, os_free, os_zalloc, pbuf_copy_partial(), pbuf_free(), _comon_pkt::pcb, _espconn_msg::pcommon, _espconn_msg::pespconn, espconn::proto, espconn::recv_callback, _comon_pkt::remote_ip, _comon_pkt::remote_port, espconn::udp, wifi_get_ip_info(), and wifi_get_opmode().
Referenced by espconn_udp_server().
err_t ICACHE_FLASH_ATTR espconn_udp_sendto | ( | void * | arg, |
uint8 * | psent, | ||
uint16 | length | ||
) |
Definition at line 183 of file espconn_udp.c.
References _comon_pkt::cntr, default_interface, eagle_lwip_getif(), ERR_OK, ESPCONN_AP_STA, ESPCONN_ARG, espconn_data_sent(), ESPCONN_IF, ESPCONN_MEM, ESPCONN_RTE, ESPCONN_SENDTO, ESPCONN_UDP_DEBUG, ICACHE_FLASH_ATTR, IP4_ADDR, pbuf::len, LWIP_DEBUGF, netif_is_up, netif_set_default(), pbuf::next, NULL, pbuf::payload, pbuf_alloc(), pbuf_copy(), pbuf_free(), PBUF_RAM, PBUF_TRANSPORT, _comon_pkt::pcb, _espconn_msg::pcommon, _espconn_msg::pespconn, espconn::proto, _comon_pkt::ptrbuf, pbuf::ref, _esp_udp::remote_ip, _esp_udp::remote_port, espconn::udp, and wifi_get_opmode().
Referenced by espconn_data_sent(), and espconn_sendto().
err_t ICACHE_FLASH_ATTR espconn_udp_sent | ( | void * | arg, |
uint8 * | psent, | ||
uint16 | length | ||
) |
Definition at line 81 of file espconn_udp.c.
References _comon_pkt::cntr, default_interface, eagle_lwip_getif(), ERR_OK, ESPCONN_AP_STA, ESPCONN_ARG, espconn_data_sent(), ESPCONN_IF, ESPCONN_MEM, ESPCONN_RTE, ESPCONN_SEND, ESPCONN_UDP_DEBUG, ICACHE_FLASH_ATTR, IP4_ADDR, pbuf::len, LWIP_DEBUGF, netif_is_up, netif_set_default(), pbuf::next, NULL, pbuf::payload, pbuf_alloc(), pbuf_copy(), pbuf_free(), PBUF_RAM, PBUF_TRANSPORT, _comon_pkt::pcb, _espconn_msg::pcommon, _espconn_msg::pespconn, espconn::proto, _comon_pkt::ptrbuf, pbuf::ref, _esp_udp::remote_ip, _esp_udp::remote_port, espconn::udp, and wifi_get_opmode().
Referenced by espconn_data_sent(), and espconn_sent().
sint8 ICACHE_FLASH_ATTR espconn_udp_server | ( | struct espconn * | pespconn | ) |
Definition at line 363 of file espconn_udp.c.
References espconn_list_creat(), ESPCONN_MEM, ESPCONN_OK, espconn_udp_recv(), ICACHE_FLASH_ATTR, IP_ADDR_ANY, _esp_udp::local_port, NULL, os_zalloc, _comon_pkt::pcb, _espconn_msg::pcommon, _espconn_msg::pespconn, espconn::proto, and espconn::udp.
Referenced by espconn_create().
uint8 default_interface |
Referenced by espconn_udp_sendto(), and espconn_udp_sent().
espconn_msg* plink_active |
Definition at line 32 of file espconn.c.
Referenced by espconn_get_connection_info().