25 #define NETWORK_SSID "\"<YOUR NETWORK NAME HERE>\""
29 #define NETWORK_PASSWORD "\"<YOUR NETWORK PASSWORD HERE>\""
42 #include "target_config.h"
44 #include "Wiconnect.h"
54 static Serial consoleSerial(STDIO_UART_TX, STDIO_UART_RX);
62 int main(
int argc,
char **argv)
64 consoleSerial.baud(115200);
73 SerialConfig serialConfig(WICONNECT_RX_PIN, WICONNECT_TX_PIN, 256, NULL);
78 Wiconnect wiconnect(serialConfig, 256, NULL, WICONNECT_RESET_PIN);
85 printf(
"Initializing WiConnect Library...\r\n");
92 printf(
"The WiFi firmware is not supported. Run the ota example to update the firmware:\r\n");
93 printf(
"https://developer.mbed.org/teams/ACKme/code/wiconnect-ota_example");
97 printf(
"Failed to initialize communication with WiFi module!\r\n"
98 "Make sure the wires are connected correctly\r\n");
108 printf(
"Joining network: %s....\r\n", NETWORK_SSID);
112 printf(
"Failed to send join command\r\n");
120 printf(
"IP Address: %s\r\n", wiconnect.getIpAddress());
121 printf(
"Network join example has completed!\r\n");
Host<->Wiconnect Module serial configuration.
The WiFi module's firmware is out-dated. See updateFirmware() to update the firmware.
Command successfully completed.
The root WiConnect library class. This class inheriets all WiConnect functionality.