SingingCat 0
application
decode_esp_packet.h
1#ifndef DECODE_ESP_PACKET_H
2#define DECODE_ESP_PACKET_H 1
3
4#include "main-header.h"
5#include "proto-esp-usart.h"
6
8int esp8266_add_byte(byte b);
10byte *esp8266_get_buf();
13void esp8266_decoder_print_info();
14#endif
byte esp8266_is_in_packet()
returns 1 if currently parsing a packet
void decode_esp_packet_init()
int esp8266_packet_size()
returns 0 if no packet is in buf, otherwise returns size of packet in bytes
byte * esp8266_get_buf()
get the buffer
int esp8266_add_byte(byte b)
feed this with one byte at a time
void esp8266_reset_buf()
reset buf, e.g. after packet was processed