nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
aws_iot.h File Reference

AWS IoT library header. More...

#include <stdio.h>
#include <zephyr/net/mqtt.h>
#include <dfu/dfu_target.h>

Go to the source code of this file.

Data Structures

struct  aws_iot_topic_data
 AWS IoT topic data. More...
 
struct  aws_iot_data
 AWS IoT transmission data. More...
 
struct  aws_iot_evt
 Struct with data received from AWS IoT broker. More...
 
struct  aws_iot_config
 Structure for AWS IoT broker connection parameters. More...
 

Typedefs

typedef void(* aws_iot_evt_handler_t) (const struct aws_iot_evt *evt)
 AWS IoT library asynchronous event handler.
 

Enumerations

enum  aws_iot_shadow_topic_received_type {
  AWS_IOT_SHADOW_TOPIC_APPLICATION_SPECIFIC , AWS_IOT_SHADOW_TOPIC_GET_ACCEPTED , AWS_IOT_SHADOW_TOPIC_GET_REJECTED , AWS_IOT_SHADOW_TOPIC_UPDATE_DELTA ,
  AWS_IOT_SHADOW_TOPIC_UPDATE_ACCEPTED , AWS_IOT_SHADOW_TOPIC_UPDATE_REJECTED , AWS_IOT_SHADOW_TOPIC_DELETE_ACCEPTED , AWS_IOT_SHADOW_TOPIC_DELETE_REJECTED
}
 AWS IoT shadow received topic types. If a message is received on a subscribed shadow topic, the type will be set to the corresponding topic. More...
 
enum  aws_iot_shadow_topic_type { AWS_IOT_SHADOW_TOPIC_NONE , AWS_IOT_SHADOW_TOPIC_GET , AWS_IOT_SHADOW_TOPIC_UPDATE , AWS_IOT_SHADOW_TOPIC_DELETE }
 AWS IoT shadow topic types. Used to address messages to the AWS IoT shadow service. More...
 
enum  aws_iot_evt_type {
  AWS_IOT_EVT_CONNECTING = 0x1 , AWS_IOT_EVT_CONNECTED , AWS_IOT_EVT_DISCONNECTED , AWS_IOT_EVT_DATA_RECEIVED ,
  AWS_IOT_EVT_PUBACK , AWS_IOT_EVT_PINGRESP , AWS_IOT_EVT_FOTA_START , AWS_IOT_EVT_FOTA_DONE ,
  AWS_IOT_EVT_FOTA_ERASE_PENDING , AWS_IOT_EVT_FOTA_ERASE_DONE , AWS_IOT_EVT_FOTA_DL_PROGRESS , AWS_IOT_EVT_FOTA_ERROR ,
  AWS_IOT_EVT_ERROR
}
 AWS IoT notification event types, used to signal the application. More...
 

Functions

int aws_iot_init (aws_iot_evt_handler_t event_handler)
 Initialize the library.
 
int aws_iot_connect (const struct aws_iot_config *const config)
 Connect to the AWS IoT broker.
 
int aws_iot_disconnect (void)
 Disconnect from the AWS IoT broker.
 
int aws_iot_send (const struct aws_iot_data *const tx_data)
 Send data to AWS IoT broker.
 
int aws_iot_application_topics_set (const struct mqtt_topic *const list, size_t count)
 Pass in a list of application specific topics that will be subscribed to upon connection to the AWS IoT broker. The number of application specific topics that the library can subscribe to is limited to 8.
 

Detailed Description

AWS IoT library header.