2 ms·
There's defmt which I think i think is even better (it implements basically the same thing as I have used in a commercial C++ embedded project for a few years,
by rcxdude 6y ago
There's defmt which I think i think is even better (it implements basically the same thing as I have used in a commercial C++ embedded project for a few years, and was sorely missing any open source equivilent when I was first trying to implement it). formatting strings on an embedded device is pointless and wasteful. Heck, formatting log lines before they are displayed to the user is actively harmful to interpreting them! Defmt basically gives embedded projects structured logging and a substantial bandwidth, cpu, and space overhead gain.
https://ferrous-systems.com/blog/defmt/ https://ferrous-systems.com/blog/defmt/
- masklinn 6y agodefmt looks cool for logging but I'd think there are cases where you want to format strings somehow in order to present them to the user e.g. audio track information or whatnot.