36 #include "json/json.h"
62 return HCI_TYPE_ACL_DATA;
66 std::cout <<
toJson(
true).data() << std::endl;
76 Json::Value packet_type;
77 packet_type[
"code"] = HCI_TYPE_ACL_DATA;
80 output[
"packet_type"] = packet_type;
86 Json::Value data_val(Json::arrayValue);
89 data_val.append(acl_data[i]);
92 output[
"data"] = data_val;
#define ACL_FRAME_OFFSET
Definition: hci_global.h:43
The IHciFrame class Interface defining all a generic HCI Frame.
Definition: IHciFrame.h:42
uint16_t data_total_length
Definition: hci_acl.h:43
std::string toJson(bool beautify)
toStyledJson convert frame information to beautiful json format
Definition: hci_acl.h:69
HCI_PACKET_TYPE_ENUM
Definition: hci_global.h:126
Json::Value toJsonObj()
toStyledJson convert frame information to beautiful json format
Definition: hci_acl.h:73
uint16_t connection_handle
Definition: hci_acl.h:40
uint8_t packet_boundary_flag
Definition: hci_acl.h:41
std::string convert_json_to_string(bool beautify, Json::Value output)
Definition: hci_global.h:164
const std::map< int, std::string > HCI_PACKET_TYPE_STRING_ENUM
Definition: hci_global.h:131
HCI_PACKET_TYPE_ENUM getPacketType()
getPacketType retrieve HCI Packet type (HCI_COMMAND / HCI_TYPE_ACL_DATA / HCI_SCO_DATA / HCI_EVENT) ...
Definition: hci_acl.h:61
void print()
Definition: hci_acl.h:65
uint8_t broadcast_flag
Definition: hci_acl.h:42
hci_acl(const std::vector< char > &data)
Definition: hci_acl.h:46
std::vector< uint8_t > acl_data
Definition: hci_acl.h:44