HTTPServer example with additional functions: * Link status indication (LED4); * Local file system (create index.htm page on MBED!); * RPC-able class (myrpc, allows remote function call that blinks LED1 N times);
myrpc.h
00001 // myrpc.h 00002 // 00003 // Based on: 00004 // http://mbed.org/projects/cookbook/svn/Servo/trunk/Servo.h 00005 // http://mbed.org/projects/cookbook/svn/Servo/trunk/Servo.cpp 00006 00007 #ifndef MYRPC_H 00008 #define MYRPC_H 00009 00010 #include "mbed.h" 00011 00012 namespace mbed { 00013 00014 class myrpc : public Base { 00015 public: 00016 myrpc(PinName pin, const char* name = NULL); 00017 void blink(int n); 00018 00019 #ifdef MBED_RPC 00020 virtual const struct rpc_method *get_rpc_methods(); 00021 static struct rpc_class *get_rpc_class(); 00022 #endif // MBED_RPC 00023 00024 protected: 00025 DigitalOut _pin; 00026 }; 00027 00028 } // namespace mbed 00029 #endif // MYRPC_H
Generated on Tue Jul 19 2022 21:00:22 by 1.7.2