radio_esp8266.h
Go to the documentation of this file.
/* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#pragma once
extern volatile bool radio_esp8266_activity;
extern volatile bool radio_esp8266_success;
void radio_esp8266_setup(void);
void radio_esp8266_tcp_open(char* host, uint16_t port);
void radio_esp8266_send(uint8_t* data, uint8_t length);
void radio_esp8266_close(void);
radio_esp8266_success
volatile bool radio_esp8266_success
the last command has succeeded
Definition: radio_esp8266.c:51
radio_esp8266_setup
void radio_esp8266_setup(void)
setup peripherals to communicate with radio
Definition: radio_esp8266.c:72
radio_esp8266_tcp_open
void radio_esp8266_tcp_open(char *host, uint16_t port)
establish TCP connection
Definition: radio_esp8266.c:117
radio_esp8266_send
void radio_esp8266_send(uint8_t *data, uint8_t length)
send data (requires established connection)
Definition: radio_esp8266.c:126
radio_esp8266_close
void radio_esp8266_close(void)
close established connection
Definition: radio_esp8266.c:142
radio_esp8266_activity
volatile bool radio_esp8266_activity
a response has been returned by the radio
Definition: radio_esp8266.c:50