CuVoodoo STM32F1 firmware template
Functions | Variables
radio_esp8266.h File Reference

library to send data using ESP8266 WiFi SoC (API) More...

Go to the source code of this file.

Functions

void radio_esp8266_setup (void)
 setup peripherals to communicate with radio More...
 
void radio_esp8266_tcp_open (char *host, uint16_t port)
 establish TCP connection More...
 
void radio_esp8266_send (uint8_t *data, uint8_t length)
 send data (requires established connection) More...
 
void radio_esp8266_close (void)
 close established connection More...
 

Variables

volatile bool radio_esp8266_activity
 a response has been returned by the radio
 
volatile bool radio_esp8266_success
 the last command has succeeded
 

Detailed Description

library to send data using ESP8266 WiFi SoC (API)

Author
King Kévin kingk.nosp@m.evin.nosp@m.@cuvo.nosp@m.odoo.nosp@m..info
Date
2016
Note
peripherals used: USART USART peripheral used for communication with radio

Definition in file radio_esp8266.h.

Function Documentation

◆ radio_esp8266_close()

void radio_esp8266_close ( void  )

close established connection

Note
wait for activity to get success status

Definition at line 142 of file radio_esp8266.c.

◆ radio_esp8266_send()

void radio_esp8266_send ( uint8_t *  data,
uint8_t  length 
)

send data (requires established connection)

Parameters
[in]datadata to send
[in]lengthsize of data to send
Note
wait for activity to get success status

Definition at line 126 of file radio_esp8266.c.

◆ radio_esp8266_setup()

void radio_esp8266_setup ( void  )

setup peripherals to communicate with radio

Note
this is blocking to ensure we are connected to the WiFi network

Definition at line 72 of file radio_esp8266.c.

◆ radio_esp8266_tcp_open()

void radio_esp8266_tcp_open ( char *  host,
uint16_t  port 
)

establish TCP connection

Parameters
[in]hosthost to connect to
[in]portTCP port to connect to
Note
wait for activity to get success status

Definition at line 117 of file radio_esp8266.c.