A Secure WebSocket client example that shows how to use the WebSocket library in SharkSSL-Lite

Dependencies:   EthernetInterface SharkSSL-Lite mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "EthernetInterface.h"
00003 #include <selib.h>
00004 
00005 int main() {
00006     EthernetInterface eth;
00007     eth.init(); //Use DHCP
00008     eth.connect();
00009     printf("IP Address is %s\n", eth.getIPAddress());
00010    mainTask(0);
00011    error("mainTask returned");
00012 }
00013