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: mbed EthernetNetIf
main.cpp
00001 #include "mbed.h" 00002 #include "EthernetNetIf.h" 00003 #include "TCPSocket.h" 00004 #include "TinyHTTP.h" 00005 00006 DigitalOut myled(LED1); 00007 Serial pc(USBTX, USBRX); 00008 EthernetNetIf eth; 00009 00010 00011 int httpRequest (int method, Host *host, char *uri, char *head, char *body); 00012 00013 host.setName("192.168.100.204"); 00014 r = httpRequest(METHOD_POST, &host, "/post.php", "Content-Type: application/x-www-form-urlencoded\r\n", "message=input by a micro-controller &submit=send");
Generated on Mon Jul 18 2022 14:48:01 by
1.7.2