Loading...
Searching...
No Matches
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.
 

Field Documentation

◆ d

double senml_numeric_t::d

Definition at line 229 of file senml.h.

◆ e

int32_t senml_numeric_t::e

Definition at line 230 of file senml.h.

◆ f

float senml_numeric_t::f

Definition at line 228 of file senml.h.

◆ i

int64_t senml_numeric_t::i

Definition at line 227 of file senml.h.

◆ m

int32_t senml_numeric_t::m

Definition at line 230 of file senml.h.

◆ type

senml_value_type_t senml_numeric_t::type

Type of the value.

Definition at line 224 of file senml.h.

◆ u

uint64_t senml_numeric_t::u

Definition at line 226 of file senml.h.


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