IoT managed integrations End Device SDK
Loading...
Searching...
No Matches
Public Attributes | List of all members
iotmiDev_DataModelHandler_Config Struct Reference

The struct to hold the configuration of data model handler. More...

#include <iotmi_device_data_model_handler.h>

Public Attributes

struct iotmiDev_Agent * agent
 The agent configured with the required endpoints.
 
uint8_t mqttSubscribeRetryCount
 The times to retry MQTT subscription.
 
uint16_t mqttSubscribeTimeoutMs
 The number of milliseconds to wait per MQTT subscription retry.
 
uint16_t mqttSendTimeoutMs
 the number of milliseconds to wait for sending a MQTT message
 
bool reportStateOnConnection
 Report current attribute values to the cloud on connection.
 

Detailed Description

The struct to hold the configuration of data model handler.

Member Data Documentation

◆ mqttSubscribeRetryCount

uint8_t iotmiDev_DataModelHandler_Config::mqttSubscribeRetryCount

The times to retry MQTT subscription.

Note
see mqttSubscribeTimeoutMs

◆ mqttSubscribeTimeoutMs

uint16_t iotmiDev_DataModelHandler_Config::mqttSubscribeTimeoutMs

The number of milliseconds to wait per MQTT subscription retry.

Note
see mqttSubscribeRetryCount

◆ reportStateOnConnection

bool iotmiDev_DataModelHandler_Config::reportStateOnConnection

Report current attribute values to the cloud on connection.

When set to true, the device will include the current values of all readable attributes when it connects to the cloud. This allows the cloud to have the initial state of the device immediately after connection.

Default is false for backward compatibility.


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