Global

Type Definitions

BooleanCallback(Boolean)

Success callback returning a boolean result
Parameters:
Name Type Description
Boolean boolean res response to the requested operation.
Source:

ConnStateCallback(connectionState)

Parameters:
Name Type Description
connectionState MyoApi.ConnectionState Current connection state
Source:

DeviceListCallback(devList)

Parameters:
Name Type Description
devList Array An array of Myo objects which represents the list of connected devices.
Source:

ErrorCallback(err)

Function which is called when the requested operation could not be completed
Parameters:
Name Type Description
err string Error reason
Source:

EventCallback(eventData)

Parameters:
Name Type Description
eventData EventDataType
Source:

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
Source:

GetAllowanceCallback(devNum)

Parameters:
Name Type Description
devNum number Number of devices allowed
Source:

GetLockPolicyCallback(policy)

Parameters:
Name Type Description
policy MyoApi.LockingPolicy Currently configured locking policy.
Source:

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.
Source: