Global

Members

(constant) SERVICE_UUID :string

UUID of the micro:bit service
Type:
  • string
Source:

Events

connected

Type:
  • object
Properties:
Name Type Description
detail.device uBit The device that has successfully connected
Source:

data-ready

Type:
  • object
Properties:
Name Type Description
detail.device uBit The device that has new data
Source:

device-list-changed

The list of devices has changed (device added or removed)
Type:
  • object
Properties:
Name Type Description
detail.devices uBit Updated map of device ids to devices
Source:

disconnected

Type:
  • object
Properties:
Name Type Description
detail.device uBit The device that has disconnected
Source:

graph-cleared

Type:
  • object
Properties:
Name Type Description
detail.device uBit The device that clear all data (completed an erase at some time)
Source:

headers-updated

Type:
  • object
Properties:
Name Type Description
detail.device uBit The device that has an update on the headers
detail.headers Array.<string> the new headers for the device
Source:

log-usage

Type:
  • object
Properties:
Name Type Description
detail.device uBit The device that has an update on progress
detail.percent int Percent of space currently in use [0.0-100.0]
Source:

progress

Type:
  • object
Properties:
Name Type Description
detail.device uBit The device that has an update on progress
detail.progress int Progress on total data transfer [0-100]
Source:

row-updated

Type:
  • object
Properties:
Name Type Description
detail.device uBit The device that has an update on a row of data
detail.row int the index of the row that has been updated (may be a new row)
detail.data Array.<string> the current data for the row
detail.headers Array.<headers> the headers for the row (same order as data)
Source:

unauthorized

Type:
  • object
Properties:
Name Type Description
detail.device uBit The device that is not authorized (must provide valid password to use device. See uBit#sendAuthorization)
Source: