SingingCat 0
application
Data Structures | Typedefs | Functions | Variables
decode_esp_packet.c File Reference

packetizes streams from esp including escape/unescape More...

#include "decode_esp_packet.h"

Go to the source code of this file.

Data Structures

struct  espbuf
 

Typedefs

typedef struct espbuf _espbuf
 

Functions

void decode_esp_packet_init ()
 
int esp8266_add_byte (byte b)
 feed this with one byte at a time More...
 
void esp8266_decoder_print_info ()
 
byte * esp8266_get_buf ()
 get the buffer More...
 
byte esp8266_is_in_packet ()
 returns 1 if currently parsing a packet More...
 
int esp8266_packet_size ()
 returns 0 if no packet is in buf, otherwise returns size of packet in bytes More...
 
void esp8266_reset_buf ()
 reset buf, e.g. after packet was processed More...
 

Variables

struct espbuf bufs [7]
 

Detailed Description

packetizes streams from esp including escape/unescape

For example: feed it with: garbagestart{PKT_TYPEa,1,00000001,19F05795,19F05795,1,3,noop

Definition in file decode_esp_packet.c.