Google Cloud IoT device SDK for embedded C  1.0.2
iotc_sub_call_params_u Union Reference

#include <iotc_types.h>

Data Fields

struct {
   const char *   topic
 
   iotc_mqtt_suback_status_t   suback_status
 
suback
 
struct {
   const char *   topic
 
   const uint8_t *   temporary_payload_data
 
   size_t   temporary_payload_data_length
 
   iotc_mqtt_retain_t   retain
 
   iotc_mqtt_qos_t   qos
 
   iotc_mqtt_dup_t   dup_flag
 
message
 

Detailed Description

The operational data for the user-defined subscription callback.

Definition at line 106 of file iotc_types.h.

Field Documentation

◆ dup_flag

iotc_mqtt_dup_t dup_flag

The MQTT DUP flag.

Definition at line 158 of file iotc_types.h.

◆ message

struct { ... } message

The MQTT PUBLISH packet.

◆ qos

The MQTT Quality of Service levels.

Definition at line 153 of file iotc_types.h.

◆ retain

The MQTT retain flag.

Definition at line 148 of file iotc_types.h.

◆ suback

struct { ... } suback

The MQTT SUBACK packet.

◆ suback_status

The MQTT SUBACK payload.

Definition at line 124 of file iotc_types.h.

◆ temporary_payload_data

const uint8_t* temporary_payload_data

The MQTT PUBLISH payload. Automatically freed when the iotc_publish() callback returns.

Definition at line 138 of file iotc_types.h.

◆ temporary_payload_data_length

size_t temporary_payload_data_length

The length, in bytes, of the MQTT PUBLISH payload.

Definition at line 143 of file iotc_types.h.

◆ topic

const char* topic

The MQTT topic.

In Cloud IoT Core, you can publish telemetry events to the /devices/DEVICE_ID/events topic and device state to the /devices/DEVICE_ID/state topic.

Definition at line 119 of file iotc_types.h.


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