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
- Committer:
- iva2k
- Date:
- 2009-12-09
- Revision:
- 0:5e068c08724a
File content as of revision 0:5e068c08724a:
// myrpc.h
//
// Based on:
// http://mbed.org/projects/cookbook/svn/Servo/trunk/Servo.h
// http://mbed.org/projects/cookbook/svn/Servo/trunk/Servo.cpp
#ifndef MYRPC_H
#define MYRPC_H
#include "mbed.h"
namespace mbed {
class myrpc : public Base {
public:
myrpc(PinName pin, const char* name = NULL);
void blink(int n);
#ifdef MBED_RPC
virtual const struct rpc_method *get_rpc_methods();
static struct rpc_class *get_rpc_class();
#endif // MBED_RPC
protected:
DigitalOut _pin;
};
} // namespace mbed
#endif // MYRPC_H