Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface Server mbed-rtos mbed Threads
main.cpp
00001 #include "mbed.h" 00002 #include "EthernetInterface.h" 00003 #include "Server.h" 00004 00005 00006 void Start_server(void const *port) { 00007 int _port=(int) port; 00008 Server my_server(_port,3); 00009 int n=my_server.Start(); 00010 if(n==-1) 00011 { 00012 //printf("Server startup failed\n"); 00013 } 00014 } 00015 00016 00017 osThreadDef(Start_server, osPriorityNormal, DEFAULT_STACK_SIZE); 00018 00019 int main (void) { 00020 int port=7; 00021 osThreadCreate(osThread(Start_server), (void *) port); 00022 /* do your thing*/ 00023 00024 }
Generated on Wed Jul 20 2022 05:06:05 by
1.7.2