james441
❔ Deserialize serial data to struct (port from C)
Having said that, if you want to try out C#, I'd take a look at https://learn.microsoft.com/en-us/dotnet/api/system.runtime.serialization.formatters.binary.binaryformatter.deserialize?view=net-7.0 - it says obsolete beacuse of potential security risks, but I think it's the only choice you have, and hopefully you are reading from hardware you trust 😛
7 replies
❔ Deserialize serial data to struct (port from C)
I've done a bit of this before for hobby stuff, not professional so take this with a big pinch of salt. You might get struggle using C# for this work. Radio sigal sending and recieving relies on quite precise timings that garbage collected languages might not work reliably for. Languages like C and C++ are really the ideal tool for this kind of job.
7 replies