8void CurrentToString(
const Current& val,
char* out,
int maxlen) {
14#if defined(ESP32) || defined(ESP8266) || defined(__linux__)
16std::string Current::asString()
const {
18 CurrentToString(*
this, out, 16);
26String Current::asArduinoString()
const {
28 CurrentToString(*
this, out, 16);
36 CurrentToString(val, out, 16);
Representation of current, internally stored as floating-point Amperes.
For convenience conversion from roo_time::Duration.
roo_logging::Stream & operator<<(roo_logging::Stream &os, const Area &val)
void FormatSimpleSiValue(float val, const char *base_unit, char *out, int maxlen)
Formats a value with an SI prefix and base unit.