User Manual

www.veear.eu
52 EasyVR 3 User Manual (1.0.14)
enum BridgeMode
Type of Bridge mode requested
Enumerator
BRIDGE_NONE Bridge mode has not been requested
BRIDGE_NORMAL Normal bridge mode (EasyVR baudrate 9600)
BRIDGE_BOOT Bridge mode for EasyVR bootloader (baudrate 115200)
Constructor & Destructor Documentation
EasyVR (Stream & s)
Creates an EasyVR object, using a communication object implementing the #Stream interface (such as
#HardwareSerial, or the modified #SoftwareSerial and #NewSoftSerial).
Parameters:
s
the Stream object to use for communication with the EasyVR module
Member Function Documentation
bool detect ()
Detects an EasyVR module, waking it from sleep mode and checking it responds correctly.
Return values:
true
if a compatible module has been found
bool stop ()
Interrupts pending recognition or playback operations.
Return values:
true
if the request is satisfied and the module is back to ready
int8_t getID ()
Gets the module identification number (firmware version).
Return values:
integer
is one of the values in ModuleId
bool setLanguage (int8_t lang)
Sets the language to use for recognition of built-in words.
Parameters:
lang
(0-5) is one of values in Language
Return values:
true
if the operation is successful
bool setTimeout (int8_t seconds)
Sets the timeout to use for any recognition task.
Parameters:
seconds
(0-31) is the maximum time the module keep listening for a word or a
command
Return values:
true
if the operation is successful