calypso  2.1.0.0
Macros | Functions
main.c File Reference

Calypso Click Example. More...

#include "board.h"
#include "log.h"
#include "calypso.h"
#include "conversions.h"

Macros

#define MESSAGE_CONTENT   "Calypso 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   256
 
#define PROCESS_BUFFER_SIZE   256
 
#define SECURITY_TYPE   "WPA_WPA2"
 
#define SOCKET_OPEN   "+socket:"
 
#define SOCKET_CONNECTED   "+connect:"
 
#define SOCKET_FAMILY   "INET"
 
#define SOCKET_TYPE   "STREAM"
 
#define SOCKET_PROTOCOL_TCP   "TCP"
 
#define SOCKET_PROTOCOL_UDP   "UDP"
 
#define SOCKET_FORMAT_BINATY   "0"
 

Functions

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

Detailed Description

Calypso Click Example.

Description

This example demonstrates the use of Calypso 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 and places AT command mode, 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
MikroE Team

Macro Definition Documentation

◆ APP_BUFFER_SIZE

#define APP_BUFFER_SIZE   256

◆ MESSAGE_CONTENT

#define MESSAGE_CONTENT   "Calypso Click board - demo example."

◆ PROCESS_BUFFER_SIZE

#define PROCESS_BUFFER_SIZE   256

◆ REMOTE_IP

#define REMOTE_IP   "77.46.162.162"

◆ REMOTE_PORT

#define REMOTE_PORT   "51111"

◆ SECURITY_TYPE

#define SECURITY_TYPE   "WPA_WPA2"

◆ SOCKET_CONNECTED

#define SOCKET_CONNECTED   "+connect:"

◆ SOCKET_FAMILY

#define SOCKET_FAMILY   "INET"

◆ SOCKET_FORMAT_BINATY

#define SOCKET_FORMAT_BINATY   "0"

◆ SOCKET_OPEN

#define SOCKET_OPEN   "+socket:"

◆ SOCKET_PROTOCOL_TCP

#define SOCKET_PROTOCOL_TCP   "TCP"

◆ SOCKET_PROTOCOL_UDP

#define SOCKET_PROTOCOL_UDP   "UDP"

◆ SOCKET_TYPE

#define SOCKET_TYPE   "STREAM"

◆ WIFI_PWD

#define WIFI_PWD   "mikroe.guest"

◆ WIFI_SSID

#define WIFI_SSID   "MikroE Public"

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  )