The KPN SenML library helps you create and parse senml documents in both json and cbor format. The library can be used for sending sensor data and receiving actuator commands.
Diff: senml_enums.cpp
- Revision:
- 0:a9259748d982
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/senml_enums.cpp Sat May 19 17:35:20 2018 +0000 @@ -0,0 +1,78 @@ +/* _ __ ____ _ _ + * | |/ / | _ \ | \ | | + * | ' / | |_) | | \| | + * | . \ | __/ | |\ | + * |_|\_\ |_| |_| \_| + * + * (c) 2018 KPN + * License: MIT License. + * Author: Jan Bogaerts + * + * enum strings + */ + +const char* senml_units_names[] = {"", + "m", + "kg", + "g", + "s", + "A", + "K", + "cd", + "mol", + "Hz", + "rad", + "sr", + "N", + "Pa", + "J", + "W", + "C", + "V", + "F", + "Ohm", + "S", + "Wb", + "T", + "H", + "Cel", + "lm", + "lx", + "Bq", + "Gy", + "Sv", + "kat", + "m2", + "m3", + "l", + "m/s", + "m/s2", + "m3/s", + "l/s", + "W/m2", + "cd/m2", + "bit", + "bit/s", + "lat", + "lon", + "pH", + "db", + "dBW", + "Bspl", + "count", + "//", + "%RH", + "%EL", + "EL", + "1/s", + "1/min", + "beat/min", + "beats", + "S/m"}; + + + + + + +