Analog Devices Wi-Fi Software Reference Manual  Release 1.0.0
Functions
adi_wifi.c File Reference

Core interface layer with the Wi-Fi radio. Handles the communication with radio using the underlying transport layer. Handles the state and events and passes up the critical events to the Wi-Fi framework

layer.

More...

Functions

ADI_WIFI_RESULT adi_wifi_radio_Init (ADI_CALLBACK pCallbackFunc)
 Initialize Wi-Fi module. More...
 
ADI_WIFI_RESULT adi_wifi_radio_GetConnectionStatus (uint8_t *const pStatus)
 Get information about the connection. More...
 
ADI_WIFI_RESULT adi_wifi_radio_GetAP (uint8_t *const pAPInfo, uint32_t nBufSize)
 Get information on the access point the Wi-Fi module is connected to. More...
 
ADI_WIFI_RESULT adi_wifi_radio_TestAT ()
 Test AT command. More...
 
ADI_WIFI_RESULT adi_wifi_radio_Restart ()
 Restart Wi-Fi module. More...
 
ADI_WIFI_RESULT adi_wifi_radio_GetVersionInfo (uint8_t *const pVersionInfoBuf, uint32_t nBufSize)
 Get the AT command version and SDK version info. More...
 
ADI_WIFI_RESULT adi_wifi_radio_SetWiFiMode (uint32_t nMode)
 Set the Wi-Fi mode. More...
 
ADI_WIFI_RESULT adi_wifi_radio_ConnectToAP (const uint8_t *const pSSID, const uint8_t *const pPassword, const uint8_t *const pBSSID)
 Connect to the access point. More...
 
ADI_WIFI_RESULT adi_wifi_radio_DisconnectFromAP ()
 Disconnect from the access point. More...
 
ADI_WIFI_RESULT adi_wifi_radio_EstablishTCPConnection (ADI_WIFI_TCP_CONNECT_CONFIG *const pTCPConnect)
 Establish TCP connection. More...
 
ADI_WIFI_RESULT adi_wifi_radio_SendData (ADI_WIFI_SEND_DATA_CONFIG *const pSendDataConfig, ADI_WIFI_AT_CMDCODE eCipSendCmd)
 Send data to server. More...
 
ADI_WIFI_RESULT adi_wifi_radio_EnableMultipleConnections (uint8_t nEnable)
 Enable/disable multiple connections. More...
 
ADI_WIFI_RESULT adi_wifi_radio_MQTTConnect (ADI_WIFI_MQTT_CONNECT_CONFIG *const pMQTTConnect)
 Connect to a MQTT broker. More...
 
ADI_WIFI_RESULT adi_wifi_radio_MQTTPublish (ADI_WIFI_PUBLISH_CONFIG *const pPublishConfig)
 Publish MQTT data. More...
 
ADI_WIFI_RESULT adi_wifi_radio_MQTTDisconnect (uint32_t nLinkID)
 Disconnect from the MQTT broker. More...
 
ADI_WIFI_RESULT adi_wifi_radio_MQTTPing (uint32_t nLinkID)
 Ping the MQTT broker. More...
 
ADI_WIFI_RESULT adi_wifi_radio_MQTTSubscribe (ADI_WIFI_SUBSCRIBE_CONFIG *const pSubscribeConfig)
 Subscribe to a topic. More...
 
ADI_WIFI_RESULT adi_wifi_GetEvent (ADI_WIFI_AT_CMDCODE eCommandType)
 Application event interface. More...
 
ADI_WIFI_RESULT adi_wifi_ParseSubscriberData ()
 Parse the +IPD messages received when the Wi-Fi module is acting as an MQTT subscriber. More...
 
void adi_wifi_GetData (uint8_t *const pPacket, uint32_t *nValidBytes)
 Get data packet. More...
 

Detailed Description

Core interface layer with the Wi-Fi radio. Handles the communication with radio using the underlying transport layer. Handles the state and events and passes up the critical events to the Wi-Fi framework

layer.

Copyright (c) 2017 Analog Devices, Inc.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, TITLE, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, PUNITIVE OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, DAMAGES ARISING OUT OF CLAIMS OF INTELLECTUAL PROPERTY RIGHTS INFRINGEMENT; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.