SML parser: add new OBIS handlers for Hertz and Degrees

copied from the original library.
This commit is contained in:
Bernhard Kirchen 2024-06-14 23:00:37 +02:00
parent 19a8f6a7bd
commit 5be1615f4e
2 changed files with 18 additions and 0 deletions

View File

@ -403,3 +403,19 @@ void smlOBISAmpere(float &a)
a = val;
smlPow(a, sc);
}
void smlOBISHertz(float &h)
{
long long int val;
smlOBISByUnit(val, sc, SML_HERTZ);
h = val;
smlPow(h, sc);
}
void smlOBISDegree(float &d)
{
long long int val;
smlOBISByUnit(val, sc, SML_DEGREE);
d = val;
smlPow(d, sc);
}

View File

@ -101,5 +101,7 @@ void smlOBISWh(float &wh);
void smlOBISW(float &w);
void smlOBISVolt(float &v);
void smlOBISAmpere(float &a);
void smlOBISHertz(float &h);
void smlOBISDegree(float &d);
#endif