|
Google Cloud IoT device SDK for embedded C
1.0.2
|
#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 |
The operational data for the user-defined subscription callback.
Definition at line 106 of file iotc_types.h.
| iotc_mqtt_dup_t dup_flag |
The MQTT DUP flag.
Definition at line 158 of file iotc_types.h.
| struct { ... } message |
The MQTT PUBLISH packet.
| iotc_mqtt_qos_t qos |
The MQTT Quality of Service levels.
Definition at line 153 of file iotc_types.h.
| iotc_mqtt_retain_t retain |
The MQTT retain flag.
Definition at line 148 of file iotc_types.h.
| struct { ... } suback |
The MQTT SUBACK packet.
| iotc_mqtt_suback_status_t suback_status |
The MQTT SUBACK payload.
Definition at line 124 of file iotc_types.h.
| 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.
| size_t temporary_payload_data_length |
The length, in bytes, of the MQTT PUBLISH payload.
Definition at line 143 of file iotc_types.h.
| 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.