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.
Fork of kpn_senml by
Diff: senml_logging.cpp
- Revision:
- 0:a9259748d982
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/senml_logging.cpp Sat May 19 17:35:20 2018 +0000 @@ -0,0 +1,27 @@ +/* _ __ ____ _ _ + * | |/ / | _ \ | \ | | + * | ' / | |_) | | \| | + * | . \ | __/ | |\ | + * |_|\_\ |_| |_| \_| + * + * (c) 2018 KPN + * License: MIT License. + * Author: Jan Bogaerts + * + * logging + */ + +#include <senml_logging.h> + +Stream* _senml_logger = NULL; + +void senMLSetLogger(Stream* logger){ + _senml_logger = logger; +}; + + + + + + +