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.
main.cpp
00001 #include "DemoBoard.h" 00002 00003 /* 00004 * This project uses an RFID tag reader and the USB interface as a HID keyboard 00005 * When an RFID tag is presented to the reader, it is "typed" to the host 00006 */ 00007 00008 int main() { 00009 00010 00011 // Create a HTTPServer on default Port 00012 HTTPServer *http = new HTTPServer(); 00013 00014 // Register RPC in /rpc space 00015 http->addHandler(new HTTPRPC()); 00016 00017 // Register local filesystem to all places which are not in /rpc 00018 http->addHandler(new HTTPFileSystemHandler("/", "/local/")); 00019 00020 // Register the HTTPServer on the Network device (will hopfully disappear in the next Version) 00021 http->bind(); 00022 00023 NetServer *net = NetServer::get(); 00024 00025 lcd.locate(0,1); 00026 lcd.printf("%hhu.%hhu.%hhu.%hhu\n", (net->getIPAddr().addr)&0xFF, (net->getIPAddr().addr>>8)&0xFF, (net->getIPAddr().addr>>16)&0xFF, (net->getIPAddr().addr>>24)&0xFF); 00027 00028 while(1) { 00029 http->poll(); 00030 } 00031 00032 00033 00034 } 00035 00036
Generated on Fri Jul 22 2022 10:51:07 by
1.7.2