aiwb212f 2.1.0.0
|
Ai-WB2-12F Click Example. More...
Macros | |
#define | EXAMPLE_TCP_UDP 0 |
#define | EXAMPLE_BLE 1 |
#define | DEMO_EXAMPLE EXAMPLE_TCP_UDP |
#define | MESSAGE_CONTENT "Ai-WB2-12F click board - demo example." |
#define | MESSAGE_LEN "40" |
#define | REMOTE_IP "77.46.162.162" |
#define | REMOTE_PORT "51111" |
#define | WIFI_SSID "MikroE Public" |
#define | WIFI_PWD "mikroe.guest" |
#define | LED_RED_GPIO "5" |
#define | LED_GREEN_GPIO "6" |
#define | LED_BLUE_GPIO "7" |
#define | APP_BUFFER_SIZE 200 |
#define | PROCESS_BUFFER_SIZE 200 |
#define | LED_STATE_ON "1" |
#define | LED_STATE_OFF "0" |
#define | WIFI_MODE "1,0" |
#define | WIFI_CONNECTED "+EVENT:WIFI_GOT_IP" |
#define | TCP_CLIENT "4" |
#define | UDP_CLIENT "2" |
#define | CON_ID "1" |
#define | KEEP_ALIVE "1" |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Ai-WB2-12F Click Example.
This example demonstrates the use of Ai-WB2-12F 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, tests the communication, and after that restarts the device, and performs example configuration.
Depending on the selected demo example, it sends a TCP/UDP echo server message and receives it or creates BLE Client which receives the messages from the connected device.
#define APP_BUFFER_SIZE 200 |
#define CON_ID "1" |
#define DEMO_EXAMPLE EXAMPLE_TCP_UDP |
#define EXAMPLE_BLE 1 |
#define EXAMPLE_TCP_UDP 0 |
#define KEEP_ALIVE "1" |
#define LED_BLUE_GPIO "7" |
#define LED_GREEN_GPIO "6" |
#define LED_RED_GPIO "5" |
#define LED_STATE_OFF "0" |
#define LED_STATE_ON "1" |
#define MESSAGE_CONTENT "Ai-WB2-12F click board - demo example." |
#define MESSAGE_LEN "40" |
#define PROCESS_BUFFER_SIZE 200 |
#define REMOTE_IP "77.46.162.162" |
#define REMOTE_PORT "51111" |
#define TCP_CLIENT "4" |
#define UDP_CLIENT "2" |
#define WIFI_CONNECTED "+EVENT:WIFI_GOT_IP" |
#define WIFI_MODE "1,0" |
#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 | ) |