Astarte device API for Zephyr 0.7.2
Astarte device SDK for Zephyr RTOS
Loading...
Searching...
No Matches
astarte_mapping_t Struct Reference

interface mapping definition More...

#include <mapping.h>

Data Fields

const char * endpoint
 Mapping endpoint.
 
const char * regex_endpoint
 Modified mapping endpoint for regex matching.
 
astarte_mapping_type_t type
 Mapping type.
 
astarte_mapping_reliability_t reliability
 Mapping reliability.
 
bool explicit_timestamp
 Explicit timestamp flag.
 
bool allow_unset
 Allow unset flag.
 

Detailed Description

interface mapping definition

This structs represent a subset of the information contained in an Astarte interface mapping https://docs.astarte-platform.org/astarte/latest/040-interface_schema.html#mapping

Field Documentation

◆ allow_unset

bool astarte_mapping_t::allow_unset

Allow unset flag.

◆ endpoint

const char* astarte_mapping_t::endpoint

Mapping endpoint.

◆ explicit_timestamp

bool astarte_mapping_t::explicit_timestamp

Explicit timestamp flag.

◆ regex_endpoint

const char* astarte_mapping_t::regex_endpoint

Modified mapping endpoint for regex matching.

The original mapping endpoint can contain parameters in the form %{([a-zA-Z_][a-zA-Z0-9_]*)}. In this modified endpoint all the parameters have been substituted by the regex pattern: [a-zA-Z_]+[a-zA-Z0-9_]* to ease pattern matching.

◆ reliability

astarte_mapping_reliability_t astarte_mapping_t::reliability

Mapping reliability.

◆ type

astarte_mapping_type_t astarte_mapping_t::type

Mapping type.


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