senml_numeric_t Struct Reference

SenML numeric value. More...

Detailed Description

SenML numeric value.

Various SenML attributes (see senml_attr_t) may contain any 'numeric' types. This struct is used to contain these.

Definition at line 223 of file senml.h.

#include <senml.h>

Data Fields

senml_value_type_t type
 Type of the value.
 
union {
   uint64_t   u
 
   int64_t   i
 
   float   f
 
   double   d
 
   struct {
      int32_t   e
 
      int32_t   m
 
   }   df
 Decimal fraction.
 
value
 Value data.
 

The documentation for this struct was generated from the following file: