Friendly LWM2M client
WppTypes.h File Reference
#include <vector>
#include <string>
#include <functional>
#include <variant>
#include "liblwm2m.h"
+ Include dependency graph for WppTypes.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  wpp::OBJ_LINK_T
 ObjLink - (object ID):(instance ID), example: 1:3. Represent as two integers in lwm2m_data_t.value.asObjLink. More...
 
struct  wpp::Version
 
struct  wpp::ResLink
 
struct  wpp::DataLink
 

Namespaces

 wpp
 The WppConnection class represents a connection interface for the Wpp library.
 

Macros

#define SINGLE_INSTANCE_ID   0
 
#define ID_T_MAX_VAL   (LWM2M_MAX_ID)
 

Typedefs

using wpp::ID_T = uint16_t
 
using wpp::EVENT_ID_T = uint8_t
 
using wpp::BOOL_T = bool
 Wpp data types bindings. More...
 
using wpp::INT_T = int64_t
 
using wpp::UINT_T = uint64_t
 
using wpp::FLOAT_T = double
 
using wpp::TIME_T = INT_T
 
using wpp::STRING_T = std::string
 
using wpp::OPAQUE_T = std::vector< uint8_t >
 Opaque - represent buffer or string as lwm2m_data_t.value.asBuffer. More...
 
using wpp::CORE_LINK_T = std::string
 CoreLink - </3/0> or </1/0/>;ssid=101 or </5>,</4>,</55>;ver=1.9,</55/0>. Represent as string in lwm2m_data_t.value.asBuffer. More...
 
using wpp::EXECUTE_T = std::function< bool(Instance &, ID_T, const OPAQUE_T &)>
 
using wpp::VERIFY_INT_T = std::function< bool(const INT_T &)>
 Data validation function types. More...
 
using wpp::VERIFY_UINT_T = std::function< bool(const UINT_T &)>
 
using wpp::VERIFY_FLOAT_T = std::function< bool(const FLOAT_T &)>
 
using wpp::VERIFY_OPAQUE_T = std::function< bool(const OPAQUE_T &)>
 
using wpp::VERIFY_BOOL_T = std::function< bool(const BOOL_T &)>
 
using wpp::VERIFY_OBJ_LINK_T = std::function< bool(const OBJ_LINK_T &)>
 
using wpp::VERIFY_STRING_T = std::function< bool(const STRING_T &)>
 
using wpp::VERIFY_EXECUTE_T = std::function< bool(const EXECUTE_T &)>
 
using wpp::VERIFY_CORE_LINK_T = std::function< bool(const CORE_LINK_T &)>
 

Enumerations

enum class  wpp::TYPE_ID : uint8_t {
  wpp::BOOL , wpp::INT , wpp::UINT , wpp::FLOAT ,
  wpp::OBJ_LINK , wpp::TIME , wpp::OPAQUE , wpp::STRING ,
  wpp::CORE_LINK , wpp::EXECUTE , wpp::UNDEFINED
}
 Wpp data types ID. More...
 
enum class  wpp::PRIORITY : uint8_t { wpp::HIGH , wpp::MEDIUM , wpp::LOW , wpp::DEFAULT = LOW }
 
enum class  wpp::IS_SINGLE : uint8_t { wpp::SINGLE , wpp::MULTIPLE }
 
enum class  wpp::IS_MANDATORY : uint8_t { wpp::MANDATORY , wpp::OPTIONAL }
 

Functions

template<typename T >
TYPE_ID wpp::dataTypeToID ()
 Determining type ID by real type. More...
 

Macro Definition Documentation

◆ ID_T_MAX_VAL

#define ID_T_MAX_VAL   (LWM2M_MAX_ID)

Definition at line 16 of file WppTypes.h.

◆ SINGLE_INSTANCE_ID

#define SINGLE_INSTANCE_ID   0

Definition at line 13 of file WppTypes.h.