The second packet is separate from the first, there will be no information about it in the first MCI packet. So simply handle MCI packets as they arrive.
-
(Rob2003)
DELETED
by Rob2003 : I got it lel, sorry haha
Your car_info function will automatically be called for every MCI packet, not just the 1st one. You don't and can't get information about packets other than the current MCI packet within that function because they have not yet been received.
The last MCI packet has a flag to inform you it's the last, so you can store the data with each packet received, and then do your actions on the stored data only if the flag is set. (I don't know how that approach sits with any particular library, I reinvented the wheel )
Thank all of you guys so much, just found my mistake... It's one of those I should kill me moments, I deleted too much data after each mci packet.... However thanks again