wifinora  2.1.0.0
Macros | Functions
main.c File Reference

WiFi NORA Click Example. More...

#include "board.h"
#include "log.h"
#include "wifinora.h"

Macros

#define MESSAGE_CONTENT   "WiFi NORA Click board - demo example."
 
#define REMOTE_IP   "77.46.162.162"
 
#define REMOTE_PORT   "51111"
 
#define WIFI_SSID   "MikroE Public"
 
#define WIFI_PWD   "mikroe.guest"
 
#define APP_BUFFER_SIZE   200
 
#define PROCESS_BUFFER_SIZE   200
 
#define WLAN_HANDLE   "0"
 
#define WPA_THRESHILD   "0"
 
#define CONNECTED   "+UENEU"
 
#define TCP_CLIENT   "0"
 
#define UDP_CLIENT   "1"
 
#define READ_LEN   "255"
 
#define TCP_PROTOCOL   "6"
 
#define UDP_PROTOCOL   "17"
 

Functions

void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

WiFi NORA Click Example.

Description

This example demonstrates the use of WiFi NORA Click board by processing the incoming data and displaying them on the USB UART.

The demo application is composed of two sections :

Application Init

Initializes the driver, tests the communication, and after that restarts the device, and performs example configuration.

Application Task

It creates a connection to the TCP-UDP echo server, sends a message to it reads it back, displaces it on the UART terminal, and then closes the connection.

Additional Function

Author
Stefan Ilic

Macro Definition Documentation

◆ APP_BUFFER_SIZE

#define APP_BUFFER_SIZE   200

◆ CONNECTED

#define CONNECTED   "+UENEU"

◆ MESSAGE_CONTENT

#define MESSAGE_CONTENT   "WiFi NORA Click board - demo example."

◆ PROCESS_BUFFER_SIZE

#define PROCESS_BUFFER_SIZE   200

◆ READ_LEN

#define READ_LEN   "255"

◆ REMOTE_IP

#define REMOTE_IP   "77.46.162.162"

◆ REMOTE_PORT

#define REMOTE_PORT   "51111"

◆ TCP_CLIENT

#define TCP_CLIENT   "0"

◆ TCP_PROTOCOL

#define TCP_PROTOCOL   "6"

◆ UDP_CLIENT

#define UDP_CLIENT   "1"

◆ UDP_PROTOCOL

#define UDP_PROTOCOL   "17"

◆ WIFI_PWD

#define WIFI_PWD   "mikroe.guest"

◆ WIFI_SSID

#define WIFI_SSID   "MikroE Public"

◆ WLAN_HANDLE

#define WLAN_HANDLE   "0"

◆ WPA_THRESHILD

#define WPA_THRESHILD   "0"

Function Documentation

◆ application_init()

void application_init ( void  )

< Logger config object.

< Click config object.

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void  )

◆ main()

int main ( void  )