hci-decoder  1.0
Lightweight Bluetooth HCI decoder library parsing individually HCI frames into JSON format
HciDecoder Class Reference

#include <hcidecoder.h>

Public Member Functions

 HciDecoder ()
 
 ~HciDecoder ()
 
IHciFramedecode (std::vector< char > data)
 decode one HCI frame More...
 
std::vector< IHciFrame * > getFrameList ()
 get all decoded packet More...
 
std::string toJson (bool beautify)
 convert all decoded frame to json More...
 

Detailed Description

hcidecoder.h HCI decoder

Author
Bertrand Martel
Version
1.0

Constructor & Destructor Documentation

HciDecoder::HciDecoder ( )
HciDecoder::~HciDecoder ( )

Member Function Documentation

IHciFrame * HciDecoder::decode ( std::vector< char >  data)

decode one HCI frame

Parameters
datadata to be parsed (length can be > packet size)
Returns
Hci frame object decoded or null pointer if not parsed correctly
std::vector< IHciFrame * > HciDecoder::getFrameList ( )

get all decoded packet

Returns
all decoded packet
std::string HciDecoder::toJson ( bool  beautify)

convert all decoded frame to json

Parameters
beautifyadd indentation + linefeed
Returns
all decoded packet in json format

The documentation for this class was generated from the following files: