calypso
2.1.0.0
|
Calypso Click Example. More...
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) |
Calypso Click Example.
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 :
Initializes the driver and places AT command mode, tests the communication, and after that restarts the device, and performs example configuration.
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.
#define APP_BUFFER_SIZE 256 |
#define MESSAGE_CONTENT "Calypso click board - demo example." |
#define PROCESS_BUFFER_SIZE 256 |
#define REMOTE_IP "77.46.162.162" |
#define REMOTE_PORT "51111" |
#define SECURITY_TYPE "WPA_WPA2" |
#define SOCKET_CONNECTED "+connect:" |
#define SOCKET_FAMILY "INET" |
#define SOCKET_FORMAT_BINATY "0" |
#define SOCKET_OPEN "+socket:" |
#define SOCKET_PROTOCOL_TCP "TCP" |
#define SOCKET_PROTOCOL_UDP "UDP" |
#define SOCKET_TYPE "STREAM" |
#define WIFI_PWD "mikroe.guest" |
#define WIFI_SSID "MikroE Public" |
void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |