Loading...
Searching...
No Matches
saul.h File Reference

Functionality for reading [S]ensor [A]ctuator [U]ber [L]ayer sensors as SenML. More...

Detailed Description

Functionality for reading [S]ensor [A]ctuator [U]ber [L]ayer sensors as SenML.

Author
Silke Hofstra silke.nosp@m.@slx.nosp@m.h.eu

Definition in file saul.h.

#include <stdint.h>
#include "nanocbor/nanocbor.h"
#include "saul_reg.h"
+ Include dependency graph for saul.h:

Go to the source code of this file.

Macros

#define CONFIG_SENML_SAUL_USE_FLOATS   0
 Use floats instead of decimal types when encoding SAUL measurements.
 

Functions

int senml_saul_reg_encode_cbor (nanocbor_encoder_t *enc, saul_reg_t *dev)
 Encode a single [S]ensor [A]ctuator [U]ber [L]ayer sensor as senml+cbor.
 
size_t senml_saul_encode_cbor (uint8_t *buf, size_t len, saul_reg_t *reg)
 Encode all sensors from a [S]ensor [A]ctuator [U]ber [L]ayer registry as senml+cbor.