#include "common.h"
#include "array.h"
Go to the source code of this file.
Define Documentation
| #define DECLARE_MODULE |
( |
|
Name, |
|
|
|
Parent | |
|
) |
| | |
Value:public:\
virtual const char * GetName(){return(#Name);}\
virtual void PrintName(HardwareSerial& port){\
port.print(#Name);\
port.print(".");\
Parent::PrintName(port);}
Declare a module.
Name is the class name, Parent is the parent class. For exmaple:
class FooClass: public Module
{
DECLARE_MODULE(FooClass,Module)
FooClass(){only add sockets and the bare minimum of initialization here}
Init(){Initialize here}
Loop{This is called on a regular basis}
}
| #define PRIORITY_NEVER -1 |