A Secure WebSocket client example that shows how to use the WebSocket library in SharkSSL-Lite
Dependencies: EthernetInterface SharkSSL-Lite mbed-rtos mbed
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
Generated on Tue Jul 19 2022 22:47:12 by 1.7.2