I have multiple Victron Energy devices that communicate through a serial port spitting out information every second. (Each Victron device communicates on a separate serial port)
What I want to do is grab the data from each device and put it combined all the data into just one json string (I have a library for that)
The only way I could think of doing it is set a variable in the class saying when finished and then check if all objects have the finished flag and then do something then.