Demo application for using the AT&T IoT Starter Kit Powered by AWS.

Dependencies:   SDFileSystem

Fork of ATT_AWS_IoT_demo by Anthony Phillips

Embed: (wiki syntax)

« Back to documentation index

Network Struct Reference

Network Struct Reference

Network Structure. More...

#include <network_interface.h>

Data Fields

int my_socket
 Integer holding the socket file descriptor.
int(* mqttread )(Network *, unsigned char *, int, int)
 Function pointer pointing to the network function to read from the network.
int(* mqttwrite )(Network *, unsigned char *, int, int)
 Function pointer pointing to the network function to write to the network.
void(* disconnect )(Network *)
 Function pointer pointing to the network function to disconnect from the network.
int(* isConnected )(Network *)
 Function pointer pointing to the network function to check if physical layer is connected.
int(* destroy )(Network *)
 Function pointer pointing to the network function to destroy the network object.

Detailed Description

Network Structure.

Structure for defining a network connection.

Definition at line 86 of file network_interface.h.


Field Documentation

int(* destroy)(Network *)

Function pointer pointing to the network function to destroy the network object.

Definition at line 93 of file network_interface.h.

void(* disconnect)(Network *)

Function pointer pointing to the network function to disconnect from the network.

Definition at line 91 of file network_interface.h.

int(* isConnected)(Network *)

Function pointer pointing to the network function to check if physical layer is connected.

Definition at line 92 of file network_interface.h.

int(* mqttread)(Network *, unsigned char *, int, int)

Function pointer pointing to the network function to read from the network.

Definition at line 89 of file network_interface.h.

int(* mqttwrite)(Network *, unsigned char *, int, int)

Function pointer pointing to the network function to write to the network.

Definition at line 90 of file network_interface.h.

int my_socket

Integer holding the socket file descriptor.

Definition at line 87 of file network_interface.h.