Data Sheet
www.veear.eu
User Manual (1.0.8) EasyVR 3 53
int16_t getToken ()
Gets the index of the received SonicNet token if any.
Return values:
integer
is the index of the received SonicNet token (0-255 for 8-bit tokens or 0-
15 for 4-bit tokens) if detection was successful, (-1) if no token has
been received or an error occurred
int16_t getError ()
Gets the last error code if any.
Return values:
(0-255)
is the error code, (-1) if no error occurred
bool isTimeout ()
Retrieves the timeout indicator.
Return values:
true
if a timeout occurred
bool isAwakened ()
Retrieves the wake-up indicator (only valid after hasFinished() has been called).
Return values:
true
if the module has been awakened from sleep mode
bool isConflict ()
Retrieves the conflict indicator.
Return values:
true
is a conflict occurred during training. To know what caused the conflict,
use getCommand() and getWord() (only valid for triggers)
bool isMemoryFull ()
Retrieves the memory full indicator (only valid after addCommand() returned false).
Return values:
true
if a command could not be added because of memory size constaints
(up to 32 custom commands can be created)
bool setPinOutput (int8_t
pin
, int8_t
value
)
Configures an I/O pin as an output and sets its value
Parameters:
pin
(1-3) is one of values in PinNumber
pin
(0-1) is one of the output values in PinConfig, or Arduino style HIGH
and LOW macros
Return values:
true
if the operation is successful










