Retrieve packet length with getDynamicPayloadSize() for each individual packet