Update Reference.md
This commit is contained in:
parent
7bb028b17c
commit
f7014ff154
|
|
@ -329,10 +329,11 @@ To create more than one user-defined command, simply create multiple instances o
|
|||
|
||||
### *#define REQUIRED VERSION(major,minor,patch)*
|
||||
|
||||
If REQUIRED is defined in the main sketch prior to including the HomeSpan library with `#include "HomeSpan.h"`, HomeSpan will throw a compile-time error unless the version of the library included is equal to, or later than, the version specified using the VERSION macro. Example:
|
||||
If REQUIRED is defined in the main sketch *prior* to including the HomeSpan library with `#include "HomeSpan.h"`, HomeSpan will throw a compile-time error unless the version of the library included is equal to, or later than, the version specified using the VERSION macro. Example:
|
||||
|
||||
```C++
|
||||
#define REQUIRED VERISON(2,1,3) // throws a compile-time error unless HomeSpan library used is version 2.1.3 or later
|
||||
#define REQUIRED VERSION(1,3,0) // throws a compile-time error unless HomeSpan library used is version 1.3.0 or later
|
||||
#include "HomeSpan.h"
|
||||
```
|
||||
### *#define CUSTOM_CHAR(name,uuid,perms,format,defaultValue,minValue,maxValue,staticRange)*
|
||||
### *#define CUSTOM_CHAR_STRING(name,uuid,perms,defaultValue)*
|
||||
|
|
|
|||
Loading…
Reference in New Issue