HCP_MSG_GET_TYPE
type = HCP_MSG_GET_TYPE(message->header);
type = HCP_MSG_GET_TYPE(packet->message.header);