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
senml_logging.cpp@0:a9259748d982, 2018-05-19 (annotated)
- Committer:
- kpniot
- Date:
- Sat May 19 17:35:20 2018 +0000
- Revision:
- 0:a9259748d982
first commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kpniot | 0:a9259748d982 | 1 | /* _ __ ____ _ _ |
kpniot | 0:a9259748d982 | 2 | * | |/ / | _ \ | \ | | |
kpniot | 0:a9259748d982 | 3 | * | ' / | |_) | | \| | |
kpniot | 0:a9259748d982 | 4 | * | . \ | __/ | |\ | |
kpniot | 0:a9259748d982 | 5 | * |_|\_\ |_| |_| \_| |
kpniot | 0:a9259748d982 | 6 | * |
kpniot | 0:a9259748d982 | 7 | * (c) 2018 KPN |
kpniot | 0:a9259748d982 | 8 | * License: MIT License. |
kpniot | 0:a9259748d982 | 9 | * Author: Jan Bogaerts |
kpniot | 0:a9259748d982 | 10 | * |
kpniot | 0:a9259748d982 | 11 | * logging |
kpniot | 0:a9259748d982 | 12 | */ |
kpniot | 0:a9259748d982 | 13 | |
kpniot | 0:a9259748d982 | 14 | #include <senml_logging.h> |
kpniot | 0:a9259748d982 | 15 | |
kpniot | 0:a9259748d982 | 16 | Stream* _senml_logger = NULL; |
kpniot | 0:a9259748d982 | 17 | |
kpniot | 0:a9259748d982 | 18 | void senMLSetLogger(Stream* logger){ |
kpniot | 0:a9259748d982 | 19 | _senml_logger = logger; |
kpniot | 0:a9259748d982 | 20 | }; |
kpniot | 0:a9259748d982 | 21 | |
kpniot | 0:a9259748d982 | 22 | |
kpniot | 0:a9259748d982 | 23 | |
kpniot | 0:a9259748d982 | 24 | |
kpniot | 0:a9259748d982 | 25 | |
kpniot | 0:a9259748d982 | 26 | |
kpniot | 0:a9259748d982 | 27 |