flyhawk001:
Is it possible to implement Serial.printf() as C language's printf() does ?If so, we use %d for integer, %s for string, %f for float point data, etc.
We can print different data type in the same function call.
We also can print many data in the same code line..
You can use my PrintEx library, you can find it in the library manager. Or here: GitHub - Chris--A/PrintEx: An extension to the Arduino Print library, and much, much more...
It contains my own implementation which includes floating point data.
You can also use streaming in and out.
It is used to add extra functionality to any Stream or Print based library (Serial, Ethernet, SD, LCD, etc...)