Simple sample that demonstrates reading the FXOS8700CQ accelerometer, convert the data to JSON and send to an Azure IoT Hub.

Dependencies:   azure_umqtt_c iothub_mqtt_transport mbed-rtos mbed wolfSSL Socket lwip-eth lwip-sys lwip

Embed: (wiki syntax)

« Back to documentation index

IOTHUB_CLIENT_CONFIG_TAG Struct Reference

IOTHUB_CLIENT_CONFIG_TAG Struct Reference

This struct captures IoTHub client configuration. More...

#include <iothub_client_ll.h>

Data Fields

IOTHUB_CLIENT_TRANSPORT_PROVIDER protocol
 A function pointer that is passed into the IoTHubClientCreate.
const char * deviceId
 A string that identifies the device.
const char * deviceKey
 The device key used to authenticate the device.
const char * deviceSasToken
 The device SAS Token used to authenticate the device in place of device key.
const char * iotHubName
 The IoT Hub name to which the device is connecting.
const char * iotHubSuffix
 IoT Hub suffix goes here, e.g., private.azure-devices-int.net.

Detailed Description

This struct captures IoTHub client configuration.

Definition at line 173 of file iothub_client_ll.h.


Field Documentation

const char* deviceId

A string that identifies the device.

Definition at line 182 of file iothub_client_ll.h.

const char* deviceKey

The device key used to authenticate the device.

If neither deviceSasToken nor deviceKey is present then the authentication is assumed x509.

Definition at line 186 of file iothub_client_ll.h.

const char* deviceSasToken

The device SAS Token used to authenticate the device in place of device key.

If neither deviceSasToken nor deviceKey is present then the authentication is assumed x509.

Definition at line 190 of file iothub_client_ll.h.

const char* iotHubName

The IoT Hub name to which the device is connecting.

Definition at line 193 of file iothub_client_ll.h.

const char* iotHubSuffix

IoT Hub suffix goes here, e.g., private.azure-devices-int.net.

Definition at line 196 of file iothub_client_ll.h.

IOTHUB_CLIENT_TRANSPORT_PROVIDER protocol

A function pointer that is passed into the IoTHubClientCreate.

A function definition for AMQP is defined in the include iothubtransportamqp.h. A function definition for HTTP is defined in the include iothubtransporthttp.h A function definition for MQTT is defined in the include iothubtransportmqtt.h

Definition at line 179 of file iothub_client_ll.h.