Type Definitions
-
BooleanCallback(Boolean)
-
Success callback returning a boolean result
Parameters:
Name Type Description Boolean
boolean res response to the requested operation. -
ConnStateCallback(connectionState)
-
Parameters:
Name Type Description connectionState
MyoApi.ConnectionState Current connection state -
DeviceListCallback(devList)
-
Parameters:
Name Type Description devList
Array An array of Myo objects which represents the list of connected devices. -
ErrorCallback(err)
-
Function which is called when the requested operation could not be completed
Parameters:
Name Type Description err
string Error reason -
EventCallback(eventData)
-
Parameters:
Name Type Description eventData
EventDataType -
EventDataType
-
Type:
- Object
Properties:
Name Type Description eventName
string Name (type) of the event myo
Myo Myo device which originated the event timestamp
number Timestamp when the event occurred ...
Other extra properties depending on the specific type of event -
GetAllowanceCallback(devNum)
-
Parameters:
Name Type Description devNum
number Number of devices allowed -
GetLockPolicyCallback(policy)
-
Parameters:
Name Type Description policy
MyoApi.LockingPolicy Currently configured locking policy. -
SuccessCallback(res)
-
Function that is called when the requested operation succeeded
Parameters:
Name Type Description res
Object | number | boolean | string | null Result (if any) of the request.