Go to the documentation of this file.
38 #include "drv_digital_out.h"
39 #include "drv_digital_in.h"
54 #define WIFIESP_MAP_MIKROBUS( cfg, mikrobus ) \
55 cfg.tx_pin = MIKROBUS( mikrobus, MIKROBUS_TX ); \
56 cfg.rx_pin = MIKROBUS( mikrobus, MIKROBUS_RX ); \
57 cfg.rst = MIKROBUS( mikrobus, MIKROBUS_RST ); \
58 cfg.cs = MIKROBUS( mikrobus, MIKROBUS_CS )
65 #define WIFIESP_RETVAL uint8_t
67 #define WIFIESP_OK 0x00
68 #define WIFIESP_INIT_ERROR 0xFF
75 #define DRV_RX_BUFFER_SIZE 610
76 #define DRV_TX_BUFFER_SIZE 150
83 #define WIFIESP_CHECK "AT"
84 #define WIFIESP_RST "AT+RST"
85 #define WIFIESP_CHECK_FIRMWARE "AT+GMR"
86 #define WIFIESP_SET_MODE "AT+CWMODE"
87 #define WIFIESP_CONNECT "AT+CWJAP"
88 #define WIFIESP_LIST_AP "AT+CWLAP"
89 #define WIFIESP_QUIT_AP "AT+CWQAP"
90 #define WIFIESP_SET_AP_PARAMETERS "AT+CWSAP"
91 #define WIFIESP_JOIN_DEV_IP "AT+CWLIF"
92 #define WIFIESP_CONNESTION_STATUS "AT+CIPSTATUS"
93 #define WIFIESP_START "AT+CIPSTART"
94 #define WIFIESP_MODE "AT+CIPMODE"
95 #define WIFIESP_SEND "AT+CIPSEND"
96 #define WIFIESP_CLOSE "AT+CIPCLOSE"
97 #define WIFIESP_GET_IP "AT+CIFSR"
98 #define WIFIESP_SET_MULTIPLE_CONNECTION "AT+CIPMUX"
99 #define WIFIESP_SET_AS_SERVER "AT+CIPSERVER"
100 #define WIFIESP_CHECK_SERVER_TIMEOUT "AT+CIPSTO?"
101 #define WIFIESP_RECEIVE "+IPD"
231 #endif // _WIFIESP_H_
void wifiesp_cfg_setup(wifiesp_cfg_t *cfg)
Config Object Initialization function.
#define DRV_RX_BUFFER_SIZE
Definition: wifiesp.h:75
WIFIESP_RETVAL wifiesp_init(wifiesp_t *ctx, wifiesp_cfg_t *cfg)
Initialization function.
Click ctx object definition.
Definition: wifiesp.h:115
uart_t uart
Definition: wifiesp.h:124
pin_name_t tx_pin
Definition: wifiesp.h:139
uart_stop_bits_t stop_bit
Definition: wifiesp.h:152
uart_parity_t parity_bit
Definition: wifiesp.h:151
pin_name_t rst
Definition: wifiesp.h:143
uint8_t wifiesp_error_t
Error type.
Definition: wifiesp.h:159
uart_data_bits_t data_bit
Definition: wifiesp.h:150
pin_name_t rx_pin
Definition: wifiesp.h:138
void wifiesp_default_cfg(wifiesp_t *ctx)
Click Default Configuration function.
int32_t wifiesp_generic_read(wifiesp_t *ctx, char *data_buf, int32_t max_len)
Generic read function.
digital_out_t rst
Definition: wifiesp.h:119
uint32_t baud_rate
Definition: wifiesp.h:148
digital_out_t cs
Definition: wifiesp.h:120
bool uart_blocking
Definition: wifiesp.h:149
Click configuration structure definition.
Definition: wifiesp.h:134
#define WIFIESP_RETVAL
Definition: wifiesp.h:65
#define DRV_TX_BUFFER_SIZE
Definition: wifiesp.h:76
void wifiesp_send_cmd(wifiesp_t *ctx, uint8_t *cmd, uint8_t *args)
Sends AT command to the module.
void wifiesp_generic_write(wifiesp_t *ctx, char *data_buf, uint16_t len)
Generic write function.
pin_name_t cs
Definition: wifiesp.h:144