6void VolumeFlowRateToString(
const VolumeFlowRate& val,
char* out,
int maxlen) {
8 strncpy(out,
"? m³/s", maxlen);
14 num = val.inCubicMetersPerSecond();
17 num = val.inLitersPerSecond();
20 num = val.inMillilitersPerSecond();
22 snprintf(out, maxlen, format, num);
28#if defined(ESP32) || defined(ESP8266) || defined(__linux__)
30std::string VolumeFlowRate::asString()
const {
32 VolumeFlowRateToString(*
this, out, 16);
40String VolumeFlowRate::asArduinoString()
const {
42 VolumeFlowRateToString(*
this, out, 16);
50 VolumeFlowRateToString(val, out, 16);
Representation of volume flow rate, internally stored as floating-point cubic meters per second.
For convenience conversion from roo_time::Duration.
roo_logging::Stream & operator<<(roo_logging::Stream &os, const Area &val)
VolumeFlowRate VolumeFlowRateInCubicMetersPerSecond(float volume_flow_rate)
Returns a volume flow rate object equivalent to the specified volume flow rate expressed in cubic met...
VolumeFlowRate VolumeFlowRateInLitersPerSecond(float volume_flow_rate)
Returns a volume flow rate object equivalent to the specified volume flow rate expressed in liters pe...