Internet Middleware API Reference  Rev 1.0
Network Struct Reference

The structure of MQTT network connection used in the MQTT library. More...

#include <MQTTMediatek.h>

Data Fields

int my_socket
 Connect the socket handle. More...
 
int(* mqttread )(Network *, unsigned char *, int, int)
 Read data from server function pointer. More...
 
int(* mqttwrite )(Network *, unsigned char *, int, int)
 Send data to server function pointer. More...
 
void(* disconnect )(Network *)
 Disconnect the network function pointer. More...
 
mbedtls_ssl_context ssl
 mbed TLS control context. More...
 
mbedtls_net_context fd
 mbed TLS network context. More...
 
mbedtls_ssl_config conf
 mbed TLS configuration context. More...
 
mbedtls_x509_crt cacertl
 mbed TLS CA certification. More...
 
mbedtls_x509_crt clicert
 mbed TLS Client certification. More...
 
mbedtls_pk_context pkey
 mbed TLS Client key. More...
 

Detailed Description

The structure of MQTT network connection used in the MQTT library.

The user has to allocate memory for this structure.

Field Documentation

mbedtls_x509_crt cacertl

mbed TLS CA certification.

mbedtls_x509_crt clicert

mbed TLS Client certification.

mbedtls_ssl_config conf

mbed TLS configuration context.

void(* disconnect) (Network *)

Disconnect the network function pointer.

mbedtls_net_context fd

mbed TLS network context.

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

Read data from server function pointer.

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

Send data to server function pointer.

int my_socket

Connect the socket handle.

mbedtls_pk_context pkey

mbed TLS Client key.

mbedtls_ssl_context ssl

mbed TLS control context.


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