1
0
Fork 0

create LLRP frame block

This commit is contained in:
Kevin Matz 2021-09-19 10:23:33 -04:00
parent 6b960d8913
commit c5c4df1888
1 changed files with 6 additions and 1 deletions

View File

@ -51,7 +51,12 @@ Implementation::Implementation(UUID::uuid cid, RDM::UID uid)
*/
void Implementation::rlpLlrpReceiver(ACN::PDU::Message<ACN::RLP::Pdu> root)
{
(void)root;
// data segment will be a block of LLRP Pdu
root->createDataBlock<LLRP::Pdu>();
auto block = std::static_pointer_cast<ACN::PDU::Block<LLRP::Pdu>>(root->data());
for(auto const &frame : *block->pdu)
LLRP::Target::receiveLLRP(frame);
}