microbit-web-bluetooth
Advanced tools
Comparing version 0.1.3 to 0.2.0
var typedoc = typedoc || {}; | ||
typedoc.search = typedoc.search || {}; | ||
typedoc.search.data = {"kinds":{"4":"Enumeration","16":"Enumeration member","64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","4194304":"Type alias"},"rows":[{"id":0,"kind":256,"name":"DeviceInformation","url":"interfaces/deviceinformation.html","classes":"tsd-kind-interface"},{"id":1,"kind":1024,"name":"modelNumber","url":"interfaces/deviceinformation.html#modelnumber","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"DeviceInformation"},{"id":2,"kind":1024,"name":"serialNumber","url":"interfaces/deviceinformation.html#serialnumber","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"DeviceInformation"},{"id":3,"kind":1024,"name":"firmwareRevision","url":"interfaces/deviceinformation.html#firmwarerevision","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"DeviceInformation"},{"id":4,"kind":1024,"name":"hardwareRevision","url":"interfaces/deviceinformation.html#hardwarerevision","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"DeviceInformation"},{"id":5,"kind":1024,"name":"manufacturer","url":"interfaces/deviceinformation.html#manufacturer","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"DeviceInformation"},{"id":6,"kind":128,"name":"DeviceInformationService","url":"classes/deviceinformationservice.html","classes":"tsd-kind-class"},{"id":7,"kind":2048,"name":"createService","url":"classes/deviceinformationservice.html#createservice","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"DeviceInformationService"},{"id":8,"kind":512,"name":"constructor","url":"classes/deviceinformationservice.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"DeviceInformationService"},{"id":9,"kind":2048,"name":"readDeviceInformation","url":"classes/deviceinformationservice.html#readdeviceinformation","classes":"tsd-kind-method tsd-parent-kind-class","parent":"DeviceInformationService"},{"id":10,"kind":4,"name":"ButtonState","url":"enums/buttonstate.html","classes":"tsd-kind-enum"},{"id":11,"kind":16,"name":"Release","url":"enums/buttonstate.html#release","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"ButtonState"},{"id":12,"kind":16,"name":"ShortPress","url":"enums/buttonstate.html#shortpress","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"ButtonState"},{"id":13,"kind":16,"name":"LongPress","url":"enums/buttonstate.html#longpress","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"ButtonState"},{"id":14,"kind":256,"name":"ButtonEvents","url":"interfaces/buttonevents.html","classes":"tsd-kind-interface"},{"id":15,"kind":1024,"name":"newListener","url":"interfaces/buttonevents.html#newlistener","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonEvents"},{"id":16,"kind":1024,"name":"removeListener","url":"interfaces/buttonevents.html#removelistener","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonEvents"},{"id":17,"kind":1024,"name":"buttonastatechanged","url":"interfaces/buttonevents.html#buttonastatechanged","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonEvents"},{"id":18,"kind":1024,"name":"buttonbstatechanged","url":"interfaces/buttonevents.html#buttonbstatechanged","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonEvents"},{"id":19,"kind":128,"name":"ButtonService","url":"classes/buttonservice.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":20,"kind":2048,"name":"createService","url":"classes/buttonservice.html#createservice","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"ButtonService"},{"id":21,"kind":512,"name":"constructor","url":"classes/buttonservice.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"ButtonService"},{"id":22,"kind":2048,"name":"readButtonAState","url":"classes/buttonservice.html#readbuttonastate","classes":"tsd-kind-method tsd-parent-kind-class","parent":"ButtonService"},{"id":23,"kind":2048,"name":"readButtonBState","url":"classes/buttonservice.html#readbuttonbstate","classes":"tsd-kind-method tsd-parent-kind-class","parent":"ButtonService"},{"id":24,"kind":2048,"name":"addEventListener","url":"classes/buttonservice.html#addeventlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":25,"kind":2048,"name":"removeEventListener","url":"classes/buttonservice.html#removeeventlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":26,"kind":2048,"name":"dispatchEvent","url":"classes/buttonservice.html#dispatchevent","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":27,"kind":2048,"name":"addListener","url":"classes/buttonservice.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":28,"kind":2048,"name":"on","url":"classes/buttonservice.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":29,"kind":2048,"name":"once","url":"classes/buttonservice.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":30,"kind":2048,"name":"prependListener","url":"classes/buttonservice.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":31,"kind":2048,"name":"prependOnceListener","url":"classes/buttonservice.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":32,"kind":2048,"name":"removeListener","url":"classes/buttonservice.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":33,"kind":2048,"name":"removeAllListeners","url":"classes/buttonservice.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":34,"kind":2048,"name":"listeners","url":"classes/buttonservice.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":35,"kind":2048,"name":"emit","url":"classes/buttonservice.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":36,"kind":2048,"name":"eventNames","url":"classes/buttonservice.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":37,"kind":2048,"name":"listenerCount","url":"classes/buttonservice.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":38,"kind":128,"name":"LedService","url":"classes/ledservice.html","classes":"tsd-kind-class"},{"id":39,"kind":2048,"name":"createService","url":"classes/ledservice.html#createservice","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"LedService"},{"id":40,"kind":512,"name":"constructor","url":"classes/ledservice.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"LedService"},{"id":41,"kind":2048,"name":"writeText","url":"classes/ledservice.html#writetext","classes":"tsd-kind-method tsd-parent-kind-class","parent":"LedService"},{"id":42,"kind":2048,"name":"getMatrixState","url":"classes/ledservice.html#getmatrixstate","classes":"tsd-kind-method tsd-parent-kind-class","parent":"LedService"},{"id":43,"kind":2048,"name":"setMatrixState","url":"classes/ledservice.html#setmatrixstate","classes":"tsd-kind-method tsd-parent-kind-class","parent":"LedService"},{"id":44,"kind":2048,"name":"getScrollingDelay","url":"classes/ledservice.html#getscrollingdelay","classes":"tsd-kind-method tsd-parent-kind-class","parent":"LedService"},{"id":45,"kind":2048,"name":"setScrollingDelay","url":"classes/ledservice.html#setscrollingdelay","classes":"tsd-kind-method tsd-parent-kind-class","parent":"LedService"},{"id":46,"kind":4194304,"name":"LedMatrix","url":"globals.html#ledmatrix","classes":"tsd-kind-type-alias"},{"id":47,"kind":256,"name":"TemperatureEvents","url":"interfaces/temperatureevents.html","classes":"tsd-kind-interface"},{"id":48,"kind":1024,"name":"newListener","url":"interfaces/temperatureevents.html#newlistener","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"TemperatureEvents"},{"id":49,"kind":1024,"name":"removeListener","url":"interfaces/temperatureevents.html#removelistener","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"TemperatureEvents"},{"id":50,"kind":1024,"name":"temperaturechanged","url":"interfaces/temperatureevents.html#temperaturechanged","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"TemperatureEvents"},{"id":51,"kind":128,"name":"TemperatureService","url":"classes/temperatureservice.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":52,"kind":2048,"name":"createService","url":"classes/temperatureservice.html#createservice","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"TemperatureService"},{"id":53,"kind":512,"name":"constructor","url":"classes/temperatureservice.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"TemperatureService"},{"id":54,"kind":2048,"name":"readTemperature","url":"classes/temperatureservice.html#readtemperature","classes":"tsd-kind-method tsd-parent-kind-class","parent":"TemperatureService"},{"id":55,"kind":2048,"name":"getTemperaturePeriod","url":"classes/temperatureservice.html#gettemperatureperiod","classes":"tsd-kind-method tsd-parent-kind-class","parent":"TemperatureService"},{"id":56,"kind":2048,"name":"setTemperaturePeriod","url":"classes/temperatureservice.html#settemperatureperiod","classes":"tsd-kind-method tsd-parent-kind-class","parent":"TemperatureService"},{"id":57,"kind":2048,"name":"addEventListener","url":"classes/temperatureservice.html#addeventlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":58,"kind":2048,"name":"removeEventListener","url":"classes/temperatureservice.html#removeeventlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":59,"kind":2048,"name":"dispatchEvent","url":"classes/temperatureservice.html#dispatchevent","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":60,"kind":2048,"name":"addListener","url":"classes/temperatureservice.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":61,"kind":2048,"name":"on","url":"classes/temperatureservice.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":62,"kind":2048,"name":"once","url":"classes/temperatureservice.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":63,"kind":2048,"name":"prependListener","url":"classes/temperatureservice.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":64,"kind":2048,"name":"prependOnceListener","url":"classes/temperatureservice.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":65,"kind":2048,"name":"removeListener","url":"classes/temperatureservice.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":66,"kind":2048,"name":"removeAllListeners","url":"classes/temperatureservice.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":67,"kind":2048,"name":"listeners","url":"classes/temperatureservice.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":68,"kind":2048,"name":"emit","url":"classes/temperatureservice.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":69,"kind":2048,"name":"eventNames","url":"classes/temperatureservice.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":70,"kind":2048,"name":"listenerCount","url":"classes/temperatureservice.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":71,"kind":256,"name":"AccelerometerData","url":"interfaces/accelerometerdata.html","classes":"tsd-kind-interface"},{"id":72,"kind":1024,"name":"x","url":"interfaces/accelerometerdata.html#x","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AccelerometerData"},{"id":73,"kind":1024,"name":"y","url":"interfaces/accelerometerdata.html#y","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AccelerometerData"},{"id":74,"kind":1024,"name":"z","url":"interfaces/accelerometerdata.html#z","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AccelerometerData"},{"id":75,"kind":256,"name":"AccelerometerEvents","url":"interfaces/accelerometerevents.html","classes":"tsd-kind-interface"},{"id":76,"kind":1024,"name":"newListener","url":"interfaces/accelerometerevents.html#newlistener","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AccelerometerEvents"},{"id":77,"kind":1024,"name":"removeListener","url":"interfaces/accelerometerevents.html#removelistener","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AccelerometerEvents"},{"id":78,"kind":1024,"name":"accelerometerdatachanged","url":"interfaces/accelerometerevents.html#accelerometerdatachanged","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AccelerometerEvents"},{"id":79,"kind":128,"name":"AccelerometerService","url":"classes/accelerometerservice.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":80,"kind":2048,"name":"createService","url":"classes/accelerometerservice.html#createservice","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"AccelerometerService"},{"id":81,"kind":512,"name":"constructor","url":"classes/accelerometerservice.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"AccelerometerService"},{"id":82,"kind":2048,"name":"readAccelerometerData","url":"classes/accelerometerservice.html#readaccelerometerdata","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AccelerometerService"},{"id":83,"kind":2048,"name":"getAccelerometerPeriod","url":"classes/accelerometerservice.html#getaccelerometerperiod","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AccelerometerService"},{"id":84,"kind":2048,"name":"setAccelerometerPeriod","url":"classes/accelerometerservice.html#setaccelerometerperiod","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AccelerometerService"},{"id":85,"kind":2048,"name":"addEventListener","url":"classes/accelerometerservice.html#addeventlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":86,"kind":2048,"name":"removeEventListener","url":"classes/accelerometerservice.html#removeeventlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":87,"kind":2048,"name":"dispatchEvent","url":"classes/accelerometerservice.html#dispatchevent","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":88,"kind":2048,"name":"addListener","url":"classes/accelerometerservice.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":89,"kind":2048,"name":"on","url":"classes/accelerometerservice.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":90,"kind":2048,"name":"once","url":"classes/accelerometerservice.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":91,"kind":2048,"name":"prependListener","url":"classes/accelerometerservice.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":92,"kind":2048,"name":"prependOnceListener","url":"classes/accelerometerservice.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":93,"kind":2048,"name":"removeListener","url":"classes/accelerometerservice.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":94,"kind":2048,"name":"removeAllListeners","url":"classes/accelerometerservice.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":95,"kind":2048,"name":"listeners","url":"classes/accelerometerservice.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":96,"kind":2048,"name":"emit","url":"classes/accelerometerservice.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":97,"kind":2048,"name":"eventNames","url":"classes/accelerometerservice.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":98,"kind":2048,"name":"listenerCount","url":"classes/accelerometerservice.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":99,"kind":4194304,"name":"AccelerometerPeriod","url":"globals.html#accelerometerperiod","classes":"tsd-kind-type-alias"},{"id":100,"kind":256,"name":"MagnetometerData","url":"interfaces/magnetometerdata.html","classes":"tsd-kind-interface"},{"id":101,"kind":1024,"name":"x","url":"interfaces/magnetometerdata.html#x","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MagnetometerData"},{"id":102,"kind":1024,"name":"y","url":"interfaces/magnetometerdata.html#y","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MagnetometerData"},{"id":103,"kind":1024,"name":"z","url":"interfaces/magnetometerdata.html#z","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MagnetometerData"},{"id":104,"kind":256,"name":"MagnetometerEvents","url":"interfaces/magnetometerevents.html","classes":"tsd-kind-interface"},{"id":105,"kind":1024,"name":"newListener","url":"interfaces/magnetometerevents.html#newlistener","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MagnetometerEvents"},{"id":106,"kind":1024,"name":"removeListener","url":"interfaces/magnetometerevents.html#removelistener","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MagnetometerEvents"},{"id":107,"kind":1024,"name":"magnetometerdatachanged","url":"interfaces/magnetometerevents.html#magnetometerdatachanged","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MagnetometerEvents"},{"id":108,"kind":1024,"name":"magnetometerbearingchanged","url":"interfaces/magnetometerevents.html#magnetometerbearingchanged","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MagnetometerEvents"},{"id":109,"kind":128,"name":"MagnetometerService","url":"classes/magnetometerservice.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":110,"kind":2048,"name":"createService","url":"classes/magnetometerservice.html#createservice","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"MagnetometerService"},{"id":111,"kind":512,"name":"constructor","url":"classes/magnetometerservice.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"MagnetometerService"},{"id":112,"kind":2048,"name":"readMagnetometerData","url":"classes/magnetometerservice.html#readmagnetometerdata","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MagnetometerService"},{"id":113,"kind":2048,"name":"getMagnetometerBearing","url":"classes/magnetometerservice.html#getmagnetometerbearing","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MagnetometerService"},{"id":114,"kind":2048,"name":"getMagnetometerPeriod","url":"classes/magnetometerservice.html#getmagnetometerperiod","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MagnetometerService"},{"id":115,"kind":2048,"name":"setMagnetometerPeriod","url":"classes/magnetometerservice.html#setmagnetometerperiod","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MagnetometerService"},{"id":116,"kind":2048,"name":"addEventListener","url":"classes/magnetometerservice.html#addeventlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":117,"kind":2048,"name":"removeEventListener","url":"classes/magnetometerservice.html#removeeventlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":118,"kind":2048,"name":"dispatchEvent","url":"classes/magnetometerservice.html#dispatchevent","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":119,"kind":2048,"name":"addListener","url":"classes/magnetometerservice.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":120,"kind":2048,"name":"on","url":"classes/magnetometerservice.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":121,"kind":2048,"name":"once","url":"classes/magnetometerservice.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":122,"kind":2048,"name":"prependListener","url":"classes/magnetometerservice.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":123,"kind":2048,"name":"prependOnceListener","url":"classes/magnetometerservice.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":124,"kind":2048,"name":"removeListener","url":"classes/magnetometerservice.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":125,"kind":2048,"name":"removeAllListeners","url":"classes/magnetometerservice.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":126,"kind":2048,"name":"listeners","url":"classes/magnetometerservice.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":127,"kind":2048,"name":"emit","url":"classes/magnetometerservice.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":128,"kind":2048,"name":"eventNames","url":"classes/magnetometerservice.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":129,"kind":2048,"name":"listenerCount","url":"classes/magnetometerservice.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":130,"kind":4194304,"name":"MagnetometerPeriod","url":"globals.html#magnetometerperiod","classes":"tsd-kind-type-alias"},{"id":131,"kind":256,"name":"MicrobitEvent","url":"interfaces/microbitevent.html","classes":"tsd-kind-interface"},{"id":132,"kind":1024,"name":"type","url":"interfaces/microbitevent.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MicrobitEvent"},{"id":133,"kind":1024,"name":"value","url":"interfaces/microbitevent.html#value","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MicrobitEvent"},{"id":134,"kind":256,"name":"MicrobitEvents","url":"interfaces/microbitevents.html","classes":"tsd-kind-interface"},{"id":135,"kind":1024,"name":"newListener","url":"interfaces/microbitevents.html#newlistener","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MicrobitEvents"},{"id":136,"kind":1024,"name":"removeListener","url":"interfaces/microbitevents.html#removelistener","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MicrobitEvents"},{"id":137,"kind":1024,"name":"microbitrequirementschanged","url":"interfaces/microbitevents.html#microbitrequirementschanged","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MicrobitEvents"},{"id":138,"kind":1024,"name":"microbitevent","url":"interfaces/microbitevents.html#microbitevent","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MicrobitEvents"},{"id":139,"kind":128,"name":"EventService","url":"classes/eventservice.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":140,"kind":2048,"name":"createService","url":"classes/eventservice.html#createservice","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"EventService"},{"id":141,"kind":512,"name":"constructor","url":"classes/eventservice.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"EventService"},{"id":142,"kind":2048,"name":"getMicrobitRequirements","url":"classes/eventservice.html#getmicrobitrequirements","classes":"tsd-kind-method tsd-parent-kind-class","parent":"EventService"},{"id":143,"kind":2048,"name":"setClientRequirements","url":"classes/eventservice.html#setclientrequirements","classes":"tsd-kind-method tsd-parent-kind-class","parent":"EventService"},{"id":144,"kind":2048,"name":"readMicrobitEvent","url":"classes/eventservice.html#readmicrobitevent","classes":"tsd-kind-method tsd-parent-kind-class","parent":"EventService"},{"id":145,"kind":2048,"name":"writeClientEvent","url":"classes/eventservice.html#writeclientevent","classes":"tsd-kind-method tsd-parent-kind-class","parent":"EventService"},{"id":146,"kind":2048,"name":"addEventListener","url":"classes/eventservice.html#addeventlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":147,"kind":2048,"name":"removeEventListener","url":"classes/eventservice.html#removeeventlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":148,"kind":2048,"name":"dispatchEvent","url":"classes/eventservice.html#dispatchevent","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":149,"kind":2048,"name":"addListener","url":"classes/eventservice.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":150,"kind":2048,"name":"on","url":"classes/eventservice.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":151,"kind":2048,"name":"once","url":"classes/eventservice.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":152,"kind":2048,"name":"prependListener","url":"classes/eventservice.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":153,"kind":2048,"name":"prependOnceListener","url":"classes/eventservice.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":154,"kind":2048,"name":"removeListener","url":"classes/eventservice.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":155,"kind":2048,"name":"removeAllListeners","url":"classes/eventservice.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":156,"kind":2048,"name":"listeners","url":"classes/eventservice.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":157,"kind":2048,"name":"emit","url":"classes/eventservice.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":158,"kind":2048,"name":"eventNames","url":"classes/eventservice.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":159,"kind":2048,"name":"listenerCount","url":"classes/eventservice.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":160,"kind":256,"name":"Services","url":"interfaces/services.html","classes":"tsd-kind-interface"},{"id":161,"kind":1024,"name":"deviceInformationService","url":"interfaces/services.html#deviceinformationservice","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Services"},{"id":162,"kind":1024,"name":"buttonService","url":"interfaces/services.html#buttonservice","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Services"},{"id":163,"kind":1024,"name":"ledService","url":"interfaces/services.html#ledservice","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Services"},{"id":164,"kind":1024,"name":"temperatureService","url":"interfaces/services.html#temperatureservice","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Services"},{"id":165,"kind":1024,"name":"accelerometerService","url":"interfaces/services.html#accelerometerservice","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Services"},{"id":166,"kind":1024,"name":"magnetometerService","url":"interfaces/services.html#magnetometerservice","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Services"},{"id":167,"kind":1024,"name":"eventService","url":"interfaces/services.html#eventservice","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Services"},{"id":168,"kind":64,"name":"requestMicrobit","url":"globals.html#requestmicrobit","classes":"tsd-kind-function"},{"id":169,"kind":64,"name":"getServices","url":"globals.html#getservices","classes":"tsd-kind-function"}]}; | ||
typedoc.search.data = {"kinds":{"4":"Enumeration","16":"Enumeration member","64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","4194304":"Type alias"},"rows":[{"id":0,"kind":256,"name":"DeviceInformation","url":"interfaces/deviceinformation.html","classes":"tsd-kind-interface"},{"id":1,"kind":1024,"name":"modelNumber","url":"interfaces/deviceinformation.html#modelnumber","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"DeviceInformation"},{"id":2,"kind":1024,"name":"serialNumber","url":"interfaces/deviceinformation.html#serialnumber","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"DeviceInformation"},{"id":3,"kind":1024,"name":"firmwareRevision","url":"interfaces/deviceinformation.html#firmwarerevision","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"DeviceInformation"},{"id":4,"kind":1024,"name":"hardwareRevision","url":"interfaces/deviceinformation.html#hardwarerevision","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"DeviceInformation"},{"id":5,"kind":1024,"name":"manufacturer","url":"interfaces/deviceinformation.html#manufacturer","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"DeviceInformation"},{"id":6,"kind":128,"name":"DeviceInformationService","url":"classes/deviceinformationservice.html","classes":"tsd-kind-class"},{"id":7,"kind":2048,"name":"createService","url":"classes/deviceinformationservice.html#createservice","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"DeviceInformationService"},{"id":8,"kind":512,"name":"constructor","url":"classes/deviceinformationservice.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"DeviceInformationService"},{"id":9,"kind":2048,"name":"readDeviceInformation","url":"classes/deviceinformationservice.html#readdeviceinformation","classes":"tsd-kind-method tsd-parent-kind-class","parent":"DeviceInformationService"},{"id":10,"kind":4,"name":"ButtonState","url":"enums/buttonstate.html","classes":"tsd-kind-enum"},{"id":11,"kind":16,"name":"Release","url":"enums/buttonstate.html#release","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"ButtonState"},{"id":12,"kind":16,"name":"ShortPress","url":"enums/buttonstate.html#shortpress","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"ButtonState"},{"id":13,"kind":16,"name":"LongPress","url":"enums/buttonstate.html#longpress","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"ButtonState"},{"id":14,"kind":256,"name":"ButtonEvents","url":"interfaces/buttonevents.html","classes":"tsd-kind-interface"},{"id":15,"kind":1024,"name":"newListener","url":"interfaces/buttonevents.html#newlistener","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonEvents"},{"id":16,"kind":1024,"name":"removeListener","url":"interfaces/buttonevents.html#removelistener","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonEvents"},{"id":17,"kind":1024,"name":"buttonastatechanged","url":"interfaces/buttonevents.html#buttonastatechanged","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonEvents"},{"id":18,"kind":1024,"name":"buttonbstatechanged","url":"interfaces/buttonevents.html#buttonbstatechanged","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ButtonEvents"},{"id":19,"kind":128,"name":"ButtonService","url":"classes/buttonservice.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":20,"kind":2048,"name":"createService","url":"classes/buttonservice.html#createservice","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"ButtonService"},{"id":21,"kind":512,"name":"constructor","url":"classes/buttonservice.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"ButtonService"},{"id":22,"kind":2048,"name":"readButtonAState","url":"classes/buttonservice.html#readbuttonastate","classes":"tsd-kind-method tsd-parent-kind-class","parent":"ButtonService"},{"id":23,"kind":2048,"name":"readButtonBState","url":"classes/buttonservice.html#readbuttonbstate","classes":"tsd-kind-method tsd-parent-kind-class","parent":"ButtonService"},{"id":24,"kind":2048,"name":"addEventListener","url":"classes/buttonservice.html#addeventlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":25,"kind":2048,"name":"removeEventListener","url":"classes/buttonservice.html#removeeventlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":26,"kind":2048,"name":"dispatchEvent","url":"classes/buttonservice.html#dispatchevent","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":27,"kind":2048,"name":"addListener","url":"classes/buttonservice.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":28,"kind":2048,"name":"on","url":"classes/buttonservice.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":29,"kind":2048,"name":"once","url":"classes/buttonservice.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":30,"kind":2048,"name":"prependListener","url":"classes/buttonservice.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":31,"kind":2048,"name":"prependOnceListener","url":"classes/buttonservice.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":32,"kind":2048,"name":"removeListener","url":"classes/buttonservice.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":33,"kind":2048,"name":"removeAllListeners","url":"classes/buttonservice.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":34,"kind":2048,"name":"listeners","url":"classes/buttonservice.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":35,"kind":2048,"name":"emit","url":"classes/buttonservice.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":36,"kind":2048,"name":"eventNames","url":"classes/buttonservice.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":37,"kind":2048,"name":"listenerCount","url":"classes/buttonservice.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ButtonService"},{"id":38,"kind":128,"name":"LedService","url":"classes/ledservice.html","classes":"tsd-kind-class"},{"id":39,"kind":2048,"name":"createService","url":"classes/ledservice.html#createservice","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"LedService"},{"id":40,"kind":512,"name":"constructor","url":"classes/ledservice.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"LedService"},{"id":41,"kind":2048,"name":"writeText","url":"classes/ledservice.html#writetext","classes":"tsd-kind-method tsd-parent-kind-class","parent":"LedService"},{"id":42,"kind":2048,"name":"getMatrixState","url":"classes/ledservice.html#getmatrixstate","classes":"tsd-kind-method tsd-parent-kind-class","parent":"LedService"},{"id":43,"kind":2048,"name":"setMatrixState","url":"classes/ledservice.html#setmatrixstate","classes":"tsd-kind-method tsd-parent-kind-class","parent":"LedService"},{"id":44,"kind":2048,"name":"getScrollingDelay","url":"classes/ledservice.html#getscrollingdelay","classes":"tsd-kind-method tsd-parent-kind-class","parent":"LedService"},{"id":45,"kind":2048,"name":"setScrollingDelay","url":"classes/ledservice.html#setscrollingdelay","classes":"tsd-kind-method tsd-parent-kind-class","parent":"LedService"},{"id":46,"kind":4194304,"name":"LedMatrix","url":"globals.html#ledmatrix","classes":"tsd-kind-type-alias"},{"id":47,"kind":256,"name":"TemperatureEvents","url":"interfaces/temperatureevents.html","classes":"tsd-kind-interface"},{"id":48,"kind":1024,"name":"newListener","url":"interfaces/temperatureevents.html#newlistener","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"TemperatureEvents"},{"id":49,"kind":1024,"name":"removeListener","url":"interfaces/temperatureevents.html#removelistener","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"TemperatureEvents"},{"id":50,"kind":1024,"name":"temperaturechanged","url":"interfaces/temperatureevents.html#temperaturechanged","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"TemperatureEvents"},{"id":51,"kind":128,"name":"TemperatureService","url":"classes/temperatureservice.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":52,"kind":2048,"name":"createService","url":"classes/temperatureservice.html#createservice","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"TemperatureService"},{"id":53,"kind":512,"name":"constructor","url":"classes/temperatureservice.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"TemperatureService"},{"id":54,"kind":2048,"name":"readTemperature","url":"classes/temperatureservice.html#readtemperature","classes":"tsd-kind-method tsd-parent-kind-class","parent":"TemperatureService"},{"id":55,"kind":2048,"name":"getTemperaturePeriod","url":"classes/temperatureservice.html#gettemperatureperiod","classes":"tsd-kind-method tsd-parent-kind-class","parent":"TemperatureService"},{"id":56,"kind":2048,"name":"setTemperaturePeriod","url":"classes/temperatureservice.html#settemperatureperiod","classes":"tsd-kind-method tsd-parent-kind-class","parent":"TemperatureService"},{"id":57,"kind":2048,"name":"addEventListener","url":"classes/temperatureservice.html#addeventlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":58,"kind":2048,"name":"removeEventListener","url":"classes/temperatureservice.html#removeeventlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":59,"kind":2048,"name":"dispatchEvent","url":"classes/temperatureservice.html#dispatchevent","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":60,"kind":2048,"name":"addListener","url":"classes/temperatureservice.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":61,"kind":2048,"name":"on","url":"classes/temperatureservice.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":62,"kind":2048,"name":"once","url":"classes/temperatureservice.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":63,"kind":2048,"name":"prependListener","url":"classes/temperatureservice.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":64,"kind":2048,"name":"prependOnceListener","url":"classes/temperatureservice.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":65,"kind":2048,"name":"removeListener","url":"classes/temperatureservice.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":66,"kind":2048,"name":"removeAllListeners","url":"classes/temperatureservice.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":67,"kind":2048,"name":"listeners","url":"classes/temperatureservice.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":68,"kind":2048,"name":"emit","url":"classes/temperatureservice.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":69,"kind":2048,"name":"eventNames","url":"classes/temperatureservice.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":70,"kind":2048,"name":"listenerCount","url":"classes/temperatureservice.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"TemperatureService"},{"id":71,"kind":256,"name":"AccelerometerData","url":"interfaces/accelerometerdata.html","classes":"tsd-kind-interface"},{"id":72,"kind":1024,"name":"x","url":"interfaces/accelerometerdata.html#x","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AccelerometerData"},{"id":73,"kind":1024,"name":"y","url":"interfaces/accelerometerdata.html#y","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AccelerometerData"},{"id":74,"kind":1024,"name":"z","url":"interfaces/accelerometerdata.html#z","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AccelerometerData"},{"id":75,"kind":256,"name":"AccelerometerEvents","url":"interfaces/accelerometerevents.html","classes":"tsd-kind-interface"},{"id":76,"kind":1024,"name":"newListener","url":"interfaces/accelerometerevents.html#newlistener","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AccelerometerEvents"},{"id":77,"kind":1024,"name":"removeListener","url":"interfaces/accelerometerevents.html#removelistener","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AccelerometerEvents"},{"id":78,"kind":1024,"name":"accelerometerdatachanged","url":"interfaces/accelerometerevents.html#accelerometerdatachanged","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AccelerometerEvents"},{"id":79,"kind":128,"name":"AccelerometerService","url":"classes/accelerometerservice.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":80,"kind":2048,"name":"createService","url":"classes/accelerometerservice.html#createservice","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"AccelerometerService"},{"id":81,"kind":512,"name":"constructor","url":"classes/accelerometerservice.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"AccelerometerService"},{"id":82,"kind":2048,"name":"readAccelerometerData","url":"classes/accelerometerservice.html#readaccelerometerdata","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AccelerometerService"},{"id":83,"kind":2048,"name":"getAccelerometerPeriod","url":"classes/accelerometerservice.html#getaccelerometerperiod","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AccelerometerService"},{"id":84,"kind":2048,"name":"setAccelerometerPeriod","url":"classes/accelerometerservice.html#setaccelerometerperiod","classes":"tsd-kind-method tsd-parent-kind-class","parent":"AccelerometerService"},{"id":85,"kind":2048,"name":"addEventListener","url":"classes/accelerometerservice.html#addeventlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":86,"kind":2048,"name":"removeEventListener","url":"classes/accelerometerservice.html#removeeventlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":87,"kind":2048,"name":"dispatchEvent","url":"classes/accelerometerservice.html#dispatchevent","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":88,"kind":2048,"name":"addListener","url":"classes/accelerometerservice.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":89,"kind":2048,"name":"on","url":"classes/accelerometerservice.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":90,"kind":2048,"name":"once","url":"classes/accelerometerservice.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":91,"kind":2048,"name":"prependListener","url":"classes/accelerometerservice.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":92,"kind":2048,"name":"prependOnceListener","url":"classes/accelerometerservice.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":93,"kind":2048,"name":"removeListener","url":"classes/accelerometerservice.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":94,"kind":2048,"name":"removeAllListeners","url":"classes/accelerometerservice.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":95,"kind":2048,"name":"listeners","url":"classes/accelerometerservice.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":96,"kind":2048,"name":"emit","url":"classes/accelerometerservice.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":97,"kind":2048,"name":"eventNames","url":"classes/accelerometerservice.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":98,"kind":2048,"name":"listenerCount","url":"classes/accelerometerservice.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"AccelerometerService"},{"id":99,"kind":4194304,"name":"AccelerometerPeriod","url":"globals.html#accelerometerperiod","classes":"tsd-kind-type-alias"},{"id":100,"kind":256,"name":"MagnetometerData","url":"interfaces/magnetometerdata.html","classes":"tsd-kind-interface"},{"id":101,"kind":1024,"name":"x","url":"interfaces/magnetometerdata.html#x","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MagnetometerData"},{"id":102,"kind":1024,"name":"y","url":"interfaces/magnetometerdata.html#y","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MagnetometerData"},{"id":103,"kind":1024,"name":"z","url":"interfaces/magnetometerdata.html#z","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MagnetometerData"},{"id":104,"kind":4,"name":"MagnetometerCalibration","url":"enums/magnetometercalibration.html","classes":"tsd-kind-enum"},{"id":105,"kind":16,"name":"unknown","url":"enums/magnetometercalibration.html#unknown","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"MagnetometerCalibration"},{"id":106,"kind":16,"name":"requested","url":"enums/magnetometercalibration.html#requested","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"MagnetometerCalibration"},{"id":107,"kind":16,"name":"completed","url":"enums/magnetometercalibration.html#completed","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"MagnetometerCalibration"},{"id":108,"kind":16,"name":"errored","url":"enums/magnetometercalibration.html#errored","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"MagnetometerCalibration"},{"id":109,"kind":256,"name":"MagnetometerEvents","url":"interfaces/magnetometerevents.html","classes":"tsd-kind-interface"},{"id":110,"kind":1024,"name":"newListener","url":"interfaces/magnetometerevents.html#newlistener","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MagnetometerEvents"},{"id":111,"kind":1024,"name":"removeListener","url":"interfaces/magnetometerevents.html#removelistener","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MagnetometerEvents"},{"id":112,"kind":1024,"name":"magnetometerdatachanged","url":"interfaces/magnetometerevents.html#magnetometerdatachanged","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MagnetometerEvents"},{"id":113,"kind":1024,"name":"magnetometerbearingchanged","url":"interfaces/magnetometerevents.html#magnetometerbearingchanged","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MagnetometerEvents"},{"id":114,"kind":1024,"name":"magnetometercalibrationchanged","url":"interfaces/magnetometerevents.html#magnetometercalibrationchanged","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MagnetometerEvents"},{"id":115,"kind":128,"name":"MagnetometerService","url":"classes/magnetometerservice.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":116,"kind":2048,"name":"createService","url":"classes/magnetometerservice.html#createservice","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"MagnetometerService"},{"id":117,"kind":512,"name":"constructor","url":"classes/magnetometerservice.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"MagnetometerService"},{"id":118,"kind":2048,"name":"calibrate","url":"classes/magnetometerservice.html#calibrate","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MagnetometerService"},{"id":119,"kind":2048,"name":"readMagnetometerData","url":"classes/magnetometerservice.html#readmagnetometerdata","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MagnetometerService"},{"id":120,"kind":2048,"name":"getMagnetometerBearing","url":"classes/magnetometerservice.html#getmagnetometerbearing","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MagnetometerService"},{"id":121,"kind":2048,"name":"getMagnetometerPeriod","url":"classes/magnetometerservice.html#getmagnetometerperiod","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MagnetometerService"},{"id":122,"kind":2048,"name":"setMagnetometerPeriod","url":"classes/magnetometerservice.html#setmagnetometerperiod","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MagnetometerService"},{"id":123,"kind":2048,"name":"addEventListener","url":"classes/magnetometerservice.html#addeventlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":124,"kind":2048,"name":"removeEventListener","url":"classes/magnetometerservice.html#removeeventlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":125,"kind":2048,"name":"dispatchEvent","url":"classes/magnetometerservice.html#dispatchevent","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":126,"kind":2048,"name":"addListener","url":"classes/magnetometerservice.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":127,"kind":2048,"name":"on","url":"classes/magnetometerservice.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":128,"kind":2048,"name":"once","url":"classes/magnetometerservice.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":129,"kind":2048,"name":"prependListener","url":"classes/magnetometerservice.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":130,"kind":2048,"name":"prependOnceListener","url":"classes/magnetometerservice.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":131,"kind":2048,"name":"removeListener","url":"classes/magnetometerservice.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":132,"kind":2048,"name":"removeAllListeners","url":"classes/magnetometerservice.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":133,"kind":2048,"name":"listeners","url":"classes/magnetometerservice.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":134,"kind":2048,"name":"emit","url":"classes/magnetometerservice.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":135,"kind":2048,"name":"eventNames","url":"classes/magnetometerservice.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":136,"kind":2048,"name":"listenerCount","url":"classes/magnetometerservice.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"MagnetometerService"},{"id":137,"kind":4194304,"name":"MagnetometerPeriod","url":"globals.html#magnetometerperiod","classes":"tsd-kind-type-alias"},{"id":138,"kind":256,"name":"UartEvents","url":"interfaces/uartevents.html","classes":"tsd-kind-interface"},{"id":139,"kind":1024,"name":"newListener","url":"interfaces/uartevents.html#newlistener","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"UartEvents"},{"id":140,"kind":1024,"name":"removeListener","url":"interfaces/uartevents.html#removelistener","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"UartEvents"},{"id":141,"kind":1024,"name":"receive","url":"interfaces/uartevents.html#receive","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"UartEvents"},{"id":142,"kind":1024,"name":"receiveString","url":"interfaces/uartevents.html#receivestring","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"UartEvents"},{"id":143,"kind":128,"name":"UartService","url":"classes/uartservice.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":144,"kind":2048,"name":"createService","url":"classes/uartservice.html#createservice","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"UartService"},{"id":145,"kind":512,"name":"constructor","url":"classes/uartservice.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"UartService"},{"id":146,"kind":2048,"name":"send","url":"classes/uartservice.html#send","classes":"tsd-kind-method tsd-parent-kind-class","parent":"UartService"},{"id":147,"kind":2048,"name":"sendString","url":"classes/uartservice.html#sendstring","classes":"tsd-kind-method tsd-parent-kind-class","parent":"UartService"},{"id":148,"kind":2048,"name":"addEventListener","url":"classes/uartservice.html#addeventlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"UartService"},{"id":149,"kind":2048,"name":"removeEventListener","url":"classes/uartservice.html#removeeventlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"UartService"},{"id":150,"kind":2048,"name":"dispatchEvent","url":"classes/uartservice.html#dispatchevent","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"UartService"},{"id":151,"kind":2048,"name":"addListener","url":"classes/uartservice.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"UartService"},{"id":152,"kind":2048,"name":"on","url":"classes/uartservice.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"UartService"},{"id":153,"kind":2048,"name":"once","url":"classes/uartservice.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"UartService"},{"id":154,"kind":2048,"name":"prependListener","url":"classes/uartservice.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"UartService"},{"id":155,"kind":2048,"name":"prependOnceListener","url":"classes/uartservice.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"UartService"},{"id":156,"kind":2048,"name":"removeListener","url":"classes/uartservice.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"UartService"},{"id":157,"kind":2048,"name":"removeAllListeners","url":"classes/uartservice.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"UartService"},{"id":158,"kind":2048,"name":"listeners","url":"classes/uartservice.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"UartService"},{"id":159,"kind":2048,"name":"emit","url":"classes/uartservice.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"UartService"},{"id":160,"kind":2048,"name":"eventNames","url":"classes/uartservice.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"UartService"},{"id":161,"kind":2048,"name":"listenerCount","url":"classes/uartservice.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"UartService"},{"id":162,"kind":256,"name":"MicrobitEvent","url":"interfaces/microbitevent.html","classes":"tsd-kind-interface"},{"id":163,"kind":1024,"name":"type","url":"interfaces/microbitevent.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MicrobitEvent"},{"id":164,"kind":1024,"name":"value","url":"interfaces/microbitevent.html#value","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MicrobitEvent"},{"id":165,"kind":256,"name":"MicrobitEvents","url":"interfaces/microbitevents.html","classes":"tsd-kind-interface"},{"id":166,"kind":1024,"name":"newListener","url":"interfaces/microbitevents.html#newlistener","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MicrobitEvents"},{"id":167,"kind":1024,"name":"removeListener","url":"interfaces/microbitevents.html#removelistener","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MicrobitEvents"},{"id":168,"kind":1024,"name":"microbitrequirementschanged","url":"interfaces/microbitevents.html#microbitrequirementschanged","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MicrobitEvents"},{"id":169,"kind":1024,"name":"microbitevent","url":"interfaces/microbitevents.html#microbitevent","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MicrobitEvents"},{"id":170,"kind":128,"name":"EventService","url":"classes/eventservice.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":171,"kind":2048,"name":"createService","url":"classes/eventservice.html#createservice","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"EventService"},{"id":172,"kind":512,"name":"constructor","url":"classes/eventservice.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"EventService"},{"id":173,"kind":2048,"name":"getMicrobitRequirements","url":"classes/eventservice.html#getmicrobitrequirements","classes":"tsd-kind-method tsd-parent-kind-class","parent":"EventService"},{"id":174,"kind":2048,"name":"setClientRequirements","url":"classes/eventservice.html#setclientrequirements","classes":"tsd-kind-method tsd-parent-kind-class","parent":"EventService"},{"id":175,"kind":2048,"name":"readMicrobitEvent","url":"classes/eventservice.html#readmicrobitevent","classes":"tsd-kind-method tsd-parent-kind-class","parent":"EventService"},{"id":176,"kind":2048,"name":"writeClientEvent","url":"classes/eventservice.html#writeclientevent","classes":"tsd-kind-method tsd-parent-kind-class","parent":"EventService"},{"id":177,"kind":2048,"name":"addEventListener","url":"classes/eventservice.html#addeventlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":178,"kind":2048,"name":"removeEventListener","url":"classes/eventservice.html#removeeventlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":179,"kind":2048,"name":"dispatchEvent","url":"classes/eventservice.html#dispatchevent","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":180,"kind":2048,"name":"addListener","url":"classes/eventservice.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":181,"kind":2048,"name":"on","url":"classes/eventservice.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":182,"kind":2048,"name":"once","url":"classes/eventservice.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":183,"kind":2048,"name":"prependListener","url":"classes/eventservice.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":184,"kind":2048,"name":"prependOnceListener","url":"classes/eventservice.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":185,"kind":2048,"name":"removeListener","url":"classes/eventservice.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":186,"kind":2048,"name":"removeAllListeners","url":"classes/eventservice.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":187,"kind":2048,"name":"listeners","url":"classes/eventservice.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":188,"kind":2048,"name":"emit","url":"classes/eventservice.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":189,"kind":2048,"name":"eventNames","url":"classes/eventservice.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":190,"kind":2048,"name":"listenerCount","url":"classes/eventservice.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"EventService"},{"id":191,"kind":256,"name":"Services","url":"interfaces/services.html","classes":"tsd-kind-interface"},{"id":192,"kind":1024,"name":"deviceInformationService","url":"interfaces/services.html#deviceinformationservice","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Services"},{"id":193,"kind":1024,"name":"buttonService","url":"interfaces/services.html#buttonservice","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Services"},{"id":194,"kind":1024,"name":"ledService","url":"interfaces/services.html#ledservice","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Services"},{"id":195,"kind":1024,"name":"temperatureService","url":"interfaces/services.html#temperatureservice","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Services"},{"id":196,"kind":1024,"name":"accelerometerService","url":"interfaces/services.html#accelerometerservice","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Services"},{"id":197,"kind":1024,"name":"magnetometerService","url":"interfaces/services.html#magnetometerservice","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Services"},{"id":198,"kind":1024,"name":"uartService","url":"interfaces/services.html#uartservice","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Services"},{"id":199,"kind":1024,"name":"eventService","url":"interfaces/services.html#eventservice","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Services"},{"id":200,"kind":64,"name":"requestMicrobit","url":"globals.html#requestmicrobit","classes":"tsd-kind-function"},{"id":201,"kind":64,"name":"getServices","url":"globals.html#getservices","classes":"tsd-kind-function"}]}; |
{ | ||
"name": "microbit-web-bluetooth", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"description": "Web Bluetooth library for micro:bit", | ||
"homepage": "https://github.com/thegecko/microbit-web-bluetooth", | ||
"license": "MIT", | ||
"main": "lib/index.js", | ||
"main": "dist/microbit.umd.js", | ||
"module": "dist/microbit.esm.js", | ||
"types": "types/index.d.ts", | ||
@@ -22,3 +23,4 @@ "repository": { | ||
"scripts": { | ||
"gulp": "gulp" | ||
"build": "rollup -c && typedoc src", | ||
"watch": "rollup -c -w" | ||
}, | ||
@@ -29,17 +31,15 @@ "engines": { | ||
"devDependencies": { | ||
"browserify": "^16.2.3", | ||
"del": "^4.0.0", | ||
"express": "^4.16.4", | ||
"gulp": "^4.0.0", | ||
"gulp-sourcemaps": "^2.6.5", | ||
"gulp-tslint": "^8.1.4", | ||
"gulp-typedoc": "^2.2.2", | ||
"gulp-typescript": "^5.0.0", | ||
"merge2": "^1.2.3", | ||
"tslint": "^5.13.1", | ||
"rollup": "^1.10.1", | ||
"rollup-plugin-delete": "^0.2.2", | ||
"rollup-plugin-livereload": "^1.0.0", | ||
"rollup-plugin-node-builtins": "^2.1.2", | ||
"rollup-plugin-serve": "^1.0.1", | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
"rollup-plugin-terser": "^4.0.4", | ||
"rollup-plugin-tslint": "^0.2.2", | ||
"rollup-plugin-typescript2": "^0.21.0", | ||
"tslint": "^5.16.0", | ||
"tslint-eslint-rules": "^5.4.0", | ||
"typedoc": "^0.14.2", | ||
"typescript": "^3.3.3333", | ||
"vinyl-buffer": "^1.0.1", | ||
"vinyl-source-stream": "^2.0.0" | ||
"typescript": "^3.4.5" | ||
}, | ||
@@ -46,0 +46,0 @@ "dependencies": { |
@@ -52,6 +52,6 @@ # micro:bit Web Bluetooth | ||
- [x] Magnetometer Data Changed Event | ||
- [ ] Magnetometer Period | ||
- [x] Magnetometer Period | ||
- [x] Magnetometer Bearing | ||
- [x] Magnetometer Bearing Changed Event | ||
- [ ] Magnetometer Calibration | ||
- [x] Magnetometer Calibration | ||
@@ -66,4 +66,6 @@ ### IO Pin Service | ||
### UART Service | ||
- [ ] TX | ||
- [ ] RX | ||
- [x] Send | ||
- [x] Receive Event | ||
- [x] SendString | ||
- [x] ReceiveString Event | ||
@@ -70,0 +72,0 @@ ### Event Service |
@@ -26,2 +26,77 @@ /* | ||
export * from "./microbit"; | ||
import { DeviceInformationUuid, DeviceInformationService } from "./services/device-information"; | ||
import { ButtonUuid, ButtonService } from "./services/button"; | ||
import { LedUuid, LedService } from "./services/led"; | ||
import { TemperatureUuid, TemperatureService } from "./services/temperature"; | ||
import { AccelerometerUuid, AccelerometerService } from "./services/accelerometer"; | ||
import { MagnetometerUuid, MagnetometerService } from "./services/magnetometer"; | ||
import { IoPinUuid } from "./services/io-pin"; | ||
import { UartUuid, UartService } from "./services/uart"; | ||
import { EventUuid, EventService } from "./services/event"; | ||
import { DfuUuid } from "./services/dfu-control"; | ||
export interface Services { | ||
deviceInformationService?: DeviceInformationService; | ||
buttonService?: ButtonService; | ||
ledService?: LedService; | ||
temperatureService?: TemperatureService; | ||
accelerometerService?: AccelerometerService; | ||
magnetometerService?: MagnetometerService; | ||
uartService?: UartService; | ||
eventService?: EventService; | ||
} | ||
export const requestMicrobit = async (bluetooth: Bluetooth): Promise<BluetoothDevice | undefined> => { | ||
const device = await bluetooth.requestDevice({ | ||
filters: [ | ||
{ | ||
namePrefix: "BBC micro:bit" | ||
} | ||
], | ||
optionalServices: [ | ||
DeviceInformationUuid, | ||
ButtonUuid, | ||
LedUuid, | ||
TemperatureUuid, | ||
AccelerometerUuid, | ||
MagnetometerUuid, | ||
IoPinUuid, | ||
UartUuid, | ||
EventUuid, | ||
DfuUuid | ||
] | ||
}); | ||
return device; | ||
}; | ||
export const getServices = async (device: BluetoothDevice): Promise<Services> => { | ||
if (!device || !device.gatt) { | ||
return {}; | ||
} | ||
if (!device.gatt.connected) { | ||
await device.gatt.connect(); | ||
} | ||
const services = await device.gatt.getPrimaryServices(); | ||
const deviceInformationService = await DeviceInformationService.createService(services); | ||
const buttonService = await ButtonService.createService(services); | ||
const ledService = await LedService.createService(services); | ||
const temperatureService = await TemperatureService.createService(services); | ||
const accelerometerService = await AccelerometerService.createService(services); | ||
const magnetometerService = await MagnetometerService.createService(services); | ||
const uartService = await UartService.createService(services); | ||
const eventService = await EventService.createService(services); | ||
return { | ||
deviceInformationService, | ||
buttonService, | ||
ledService, | ||
temperatureService, | ||
accelerometerService, | ||
magnetometerService, | ||
uartService, | ||
eventService, | ||
}; | ||
}; |
@@ -73,4 +73,3 @@ /* | ||
private async init() { | ||
const char = await this.service.getCharacteristic(AccelerometerCharacteristic.accelerometerData); | ||
await char.startNotifications(); | ||
await this.startNotifications(AccelerometerCharacteristic.accelerometerData); | ||
@@ -103,2 +102,7 @@ this.on("newListener", this.onNewListener.bind(this)); | ||
private async startNotifications(characteristic: BluetoothCharacteristicUUID) { | ||
const char = await this.service.getCharacteristic(characteristic); | ||
await char.startNotifications(); | ||
} | ||
private async onNewListener(event: keyof AccelerometerEvents): Promise<void> { | ||
@@ -105,0 +109,0 @@ const listenerCount = this.listenerCount(event); |
@@ -72,6 +72,4 @@ /* | ||
private async init() { | ||
const charA = await this.service.getCharacteristic(ButtonCharacteristic.buttonAState); | ||
await charA.startNotifications(); | ||
const charB = await this.service.getCharacteristic(ButtonCharacteristic.buttonBState); | ||
await charB.startNotifications(); | ||
await this.startNotifications(ButtonCharacteristic.buttonAState); | ||
await this.startNotifications(ButtonCharacteristic.buttonBState); | ||
@@ -98,2 +96,7 @@ this.on("newListener", this.onNewListener.bind(this)); | ||
private async startNotifications(characteristic: BluetoothCharacteristicUUID) { | ||
const char = await this.service.getCharacteristic(characteristic); | ||
await char.startNotifications(); | ||
} | ||
private async onNewListener(event: keyof ButtonEvents): Promise<void> { | ||
@@ -100,0 +103,0 @@ const listenerCount = this.listenerCount(event); |
@@ -73,4 +73,4 @@ /* | ||
private async init() { | ||
const char = await this.service.getCharacteristic(EventCharacteristic.microBitEvent); | ||
await char.startNotifications(); | ||
await this.startNotifications(EventCharacteristic.microBitEvent); | ||
await this.startNotifications(EventCharacteristic.microBitRequirements); | ||
@@ -112,2 +112,7 @@ this.on("newListener", this.onNewListener.bind(this)); | ||
private async startNotifications(characteristic: BluetoothCharacteristicUUID) { | ||
const char = await this.service.getCharacteristic(characteristic); | ||
await char.startNotifications(); | ||
} | ||
private async onNewListener(event: keyof MicrobitEvents): Promise<void> { | ||
@@ -141,3 +146,2 @@ const listenerCount = this.listenerCount(event); | ||
char.removeEventListener("characteristicvaluechanged", this.eventHandler.bind(this)); | ||
await char.stopNotifications(); | ||
} | ||
@@ -148,3 +152,2 @@ | ||
char.removeEventListener("characteristicvaluechanged", this.microbitRequirementsChangedHandler.bind(this)); | ||
await char.stopNotifications(); | ||
} | ||
@@ -151,0 +154,0 @@ } |
@@ -49,2 +49,9 @@ /* | ||
export enum MagnetometerCalibration { | ||
unknown = 0, | ||
requested = 1, | ||
completed = 2, | ||
errored = 3 | ||
} | ||
export type MagnetometerPeriod = 1 | 2 | 5 | 10 | 20 | 80 | 160 | 640; | ||
@@ -57,2 +64,3 @@ | ||
magnetometerbearingchanged: number; | ||
magnetometercalibrationchanged: MagnetometerCalibration; | ||
} | ||
@@ -78,4 +86,5 @@ | ||
private async init() { | ||
const char = await this.service.getCharacteristic(MagnetometerCharacteristic.magnetometerData); | ||
await char.startNotifications(); | ||
await this.startNotifications(MagnetometerCharacteristic.magnetometerData); | ||
await this.startNotifications(MagnetometerCharacteristic.magnetometerBearing); | ||
await this.startNotifications(MagnetometerCharacteristic.magnetometerCalibration); | ||
@@ -86,2 +95,11 @@ this.on("newListener", this.onNewListener.bind(this)); | ||
public async calibrate() { | ||
const char = await this.getCharacteristic(MagnetometerCharacteristic.magnetometerCalibration); | ||
if (!char) { | ||
throw new Error("Unable to locate calibration characteristic"); | ||
} | ||
return char.writeValue(new Uint8Array([1])); | ||
} | ||
public async readMagnetometerData(): Promise<MagnetometerData> { | ||
@@ -106,3 +124,7 @@ const view = await this.getCharacteristValue(MagnetometerCharacteristic.magnetometerData); | ||
public async setMagnetometerPeriod(frequency: MagnetometerPeriod): Promise<void> { | ||
const char = await this.service.getCharacteristic(MagnetometerCharacteristic.magnetometerPeriod); | ||
const char = await this.getCharacteristic(MagnetometerCharacteristic.magnetometerPeriod); | ||
if (!char) { | ||
throw new Error("Unable to locate period characteristic"); | ||
} | ||
const view = new DataView(new ArrayBuffer(2)); | ||
@@ -113,7 +135,26 @@ view.setUint16(0, frequency, true); | ||
private async getCharacteristic(characteristic: BluetoothCharacteristicUUID): Promise<BluetoothRemoteGATTCharacteristic | undefined> { | ||
try { | ||
return await this.service.getCharacteristic(characteristic); | ||
} catch (e) { | ||
return undefined; | ||
} | ||
} | ||
private async getCharacteristValue(characteristic: BluetoothCharacteristicUUID): Promise<DataView> { | ||
const char = await this.service.getCharacteristic(characteristic); | ||
const char = await this.getCharacteristic(characteristic); | ||
if (!char) { | ||
throw new Error("Unable to locate characteristic"); | ||
} | ||
return await char.readValue(); | ||
} | ||
private async startNotifications(characteristic: BluetoothCharacteristicUUID) { | ||
const char = await this.getCharacteristic(characteristic); | ||
if (char) { | ||
await char.startNotifications(); | ||
} | ||
} | ||
private async onNewListener(event: keyof MagnetometerEvents): Promise<void> { | ||
@@ -127,10 +168,21 @@ const listenerCount = this.listenerCount(event); | ||
if (event === "magnetometerdatachanged") { | ||
const char = await this.service.getCharacteristic(MagnetometerCharacteristic.magnetometerData); | ||
char.addEventListener("characteristicvaluechanged", this.magnetometerDataChangedHandler.bind(this)); | ||
const char = await this.getCharacteristic(MagnetometerCharacteristic.magnetometerData); | ||
if (char) { | ||
char.addEventListener("characteristicvaluechanged", this.magnetometerDataChangedHandler.bind(this)); | ||
} | ||
} | ||
if (event === "magnetometerbearingchanged") { | ||
const char = await this.service.getCharacteristic(MagnetometerCharacteristic.magnetometerBearing); | ||
char.addEventListener("characteristicvaluechanged", this.magnetometerBearingChangedHandler.bind(this)); | ||
const char = await this.getCharacteristic(MagnetometerCharacteristic.magnetometerBearing); | ||
if (char) { | ||
char.addEventListener("characteristicvaluechanged", this.magnetometerBearingChangedHandler.bind(this)); | ||
} | ||
} | ||
if (event === "magnetometercalibrationchanged") { | ||
const char = await this.getCharacteristic(MagnetometerCharacteristic.magnetometerCalibration); | ||
if (char) { | ||
char.addEventListener("characteristicvaluechanged", this.magnetometerCalibrationChangedHandler.bind(this)); | ||
} | ||
} | ||
} | ||
@@ -146,12 +198,21 @@ | ||
if (event === "magnetometerdatachanged") { | ||
const char = await this.service.getCharacteristic(MagnetometerCharacteristic.magnetometerData); | ||
char.removeEventListener("characteristicvaluechanged", this.magnetometerDataChangedHandler.bind(this)); | ||
await char.stopNotifications(); | ||
const char = await this.getCharacteristic(MagnetometerCharacteristic.magnetometerData); | ||
if (char) { | ||
char.removeEventListener("characteristicvaluechanged", this.magnetometerDataChangedHandler.bind(this)); | ||
} | ||
} | ||
if (event === "magnetometerbearingchanged") { | ||
const char = await this.service.getCharacteristic(MagnetometerCharacteristic.magnetometerBearing); | ||
char.removeEventListener("characteristicvaluechanged", this.magnetometerBearingChangedHandler.bind(this)); | ||
await char.stopNotifications(); | ||
const char = await this.getCharacteristic(MagnetometerCharacteristic.magnetometerBearing); | ||
if (char) { | ||
char.removeEventListener("characteristicvaluechanged", this.magnetometerBearingChangedHandler.bind(this)); | ||
} | ||
} | ||
if (event === "magnetometercalibrationchanged") { | ||
const char = await this.getCharacteristic(MagnetometerCharacteristic.magnetometerCalibration); | ||
if (char) { | ||
char.removeEventListener("characteristicvaluechanged", this.magnetometerCalibrationChangedHandler.bind(this)); | ||
} | ||
} | ||
} | ||
@@ -172,2 +233,9 @@ | ||
private magnetometerCalibrationChangedHandler(event: Event) { | ||
const view = (event.target as BluetoothRemoteGATTCharacteristic).value!; | ||
if (view.byteLength === 1) { | ||
this.dispatchEvent("magnetometercalibrationchanged", view.getUint8(0) as MagnetometerCalibration); | ||
} | ||
} | ||
private dataViewToMagnetometerData(view: DataView): MagnetometerData { | ||
@@ -174,0 +242,0 @@ return { |
@@ -65,4 +65,3 @@ /* | ||
private async init() { | ||
const char = await this.service.getCharacteristic(TemperatureCharacteristic.temperature); | ||
await char.startNotifications(); | ||
await this.startNotifications(TemperatureCharacteristic.temperature); | ||
@@ -95,2 +94,7 @@ this.on("newListener", this.onNewListener.bind(this)); | ||
private async startNotifications(characteristic: BluetoothCharacteristicUUID) { | ||
const char = await this.service.getCharacteristic(characteristic); | ||
await char.startNotifications(); | ||
} | ||
private async onNewListener(event: keyof TemperatureEvents): Promise<void> { | ||
@@ -97,0 +101,0 @@ const listenerCount = this.listenerCount(event); |
@@ -26,2 +26,4 @@ /* | ||
import { EventDispatcher, TypedDispatcher } from "../event-dispatcher"; | ||
/** | ||
@@ -39,1 +41,98 @@ * @hidden | ||
} | ||
export interface UartEvents { | ||
newListener: keyof UartEvents; | ||
removeListener: keyof UartEvents; | ||
receive: Uint8Array; | ||
receiveString: string; | ||
} | ||
export class UartService extends (EventDispatcher as new() => TypedDispatcher<UartEvents>) { | ||
public static async createService(services: BluetoothRemoteGATTService[]): Promise<UartService | undefined> { | ||
const found = services.find(service => service.uuid === UartUuid); | ||
if (!found) { | ||
return undefined; | ||
} | ||
const uartService = new UartService(found); | ||
await uartService.init(); | ||
return uartService; | ||
} | ||
constructor(private service: BluetoothRemoteGATTService) { | ||
super(); | ||
} | ||
private async init() { | ||
await this.startNotifications(UartCharacteristic.tx); | ||
this.on("newListener", this.onNewListener.bind(this)); | ||
this.on("removeListener", this.onRemoveListener.bind(this)); | ||
} | ||
public async send(value: BufferSource): Promise<void> { | ||
const char = await this.service.getCharacteristic(UartCharacteristic.rx); | ||
return char.writeValue(value); | ||
} | ||
public async sendString(value: string): Promise<void> { | ||
const char = await this.service.getCharacteristic(UartCharacteristic.rx); | ||
const arrayData = value.split("").map((e: string) => e.charCodeAt(0)); | ||
return char.writeValue(new Uint8Array(arrayData).buffer); | ||
} | ||
private async startNotifications(characteristic: BluetoothCharacteristicUUID) { | ||
const char = await this.service.getCharacteristic(characteristic); | ||
await char.startNotifications(); | ||
} | ||
private async onNewListener(event: keyof UartEvents): Promise<void> { | ||
const listenerCount = this.listenerCount(event); | ||
if (listenerCount > 0) { | ||
return; | ||
} | ||
if (event === "receive") { | ||
const char = await this.service.getCharacteristic(UartCharacteristic.tx); | ||
char.addEventListener("characteristicvaluechanged", this.receiveHandler.bind(this)); | ||
} | ||
if (event === "receiveString") { | ||
const char = await this.service.getCharacteristic(UartCharacteristic.tx); | ||
char.addEventListener("characteristicvaluechanged", this.receiveStringHandler.bind(this)); | ||
} | ||
} | ||
private async onRemoveListener(event: keyof UartEvents) { | ||
const listenerCount = this.listenerCount(event); | ||
if (listenerCount > 0) { | ||
return; | ||
} | ||
if (event === "receive") { | ||
const char = await this.service.getCharacteristic(UartCharacteristic.tx); | ||
char.removeEventListener("characteristicvaluechanged", this.receiveHandler.bind(this)); | ||
} | ||
if (event === "receiveString") { | ||
const char = await this.service.getCharacteristic(UartCharacteristic.tx); | ||
char.removeEventListener("characteristicvaluechanged", this.receiveStringHandler.bind(this)); | ||
} | ||
} | ||
private receiveHandler(event: Event) { | ||
const view = (event.target as BluetoothRemoteGATTCharacteristic).value!; | ||
const value = new Uint8Array(view.buffer); | ||
this.dispatchEvent("receive", value); | ||
} | ||
private receiveStringHandler(event: Event) { | ||
const view = (event.target as BluetoothRemoteGATTCharacteristic).value!; | ||
const numberArray = Array.prototype.slice.call(new Uint8Array(view.buffer)); | ||
const value = String.fromCharCode.apply(null, numberArray); | ||
this.dispatchEvent("receiveString", value); | ||
} | ||
} |
{ | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "commonjs", | ||
"lib": [ | ||
@@ -15,4 +14,5 @@ "es6", | ||
"sourceMap": true, | ||
"declaration": true | ||
"declaration": true, | ||
"declarationDir": "types" | ||
} | ||
} |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -1,1 +0,21 @@ | ||
export * from "./microbit"; | ||
/// <reference types="web-bluetooth" /> | ||
import { DeviceInformationService } from "./services/device-information"; | ||
import { ButtonService } from "./services/button"; | ||
import { LedService } from "./services/led"; | ||
import { TemperatureService } from "./services/temperature"; | ||
import { AccelerometerService } from "./services/accelerometer"; | ||
import { MagnetometerService } from "./services/magnetometer"; | ||
import { UartService } from "./services/uart"; | ||
import { EventService } from "./services/event"; | ||
export interface Services { | ||
deviceInformationService?: DeviceInformationService; | ||
buttonService?: ButtonService; | ||
ledService?: LedService; | ||
temperatureService?: TemperatureService; | ||
accelerometerService?: AccelerometerService; | ||
magnetometerService?: MagnetometerService; | ||
uartService?: UartService; | ||
eventService?: EventService; | ||
} | ||
export declare const requestMicrobit: (bluetooth: Bluetooth) => Promise<BluetoothDevice | undefined>; | ||
export declare const getServices: (device: BluetoothDevice) => Promise<Services>; |
@@ -35,2 +35,3 @@ /// <reference types="web-bluetooth" /> | ||
private getCharacteristValue; | ||
private startNotifications; | ||
private onNewListener; | ||
@@ -37,0 +38,0 @@ private onRemoveListener; |
@@ -34,2 +34,3 @@ /// <reference types="web-bluetooth" /> | ||
private getCharacteristValue; | ||
private startNotifications; | ||
private onNewListener; | ||
@@ -36,0 +37,0 @@ private onRemoveListener; |
@@ -0,0 +0,0 @@ /// <reference types="web-bluetooth" /> |
@@ -0,0 +0,0 @@ /** |
@@ -37,2 +37,3 @@ /// <reference types="web-bluetooth" /> | ||
private getCharacteristValue; | ||
private startNotifications; | ||
private onNewListener; | ||
@@ -39,0 +40,0 @@ private onRemoveListener; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /// <reference types="web-bluetooth" /> |
@@ -21,2 +21,8 @@ /// <reference types="web-bluetooth" /> | ||
} | ||
export declare enum MagnetometerCalibration { | ||
unknown = 0, | ||
requested = 1, | ||
completed = 2, | ||
errored = 3 | ||
} | ||
export declare type MagnetometerPeriod = 1 | 2 | 5 | 10 | 20 | 80 | 160 | 640; | ||
@@ -28,2 +34,3 @@ export interface MagnetometerEvents { | ||
magnetometerbearingchanged: number; | ||
magnetometercalibrationchanged: MagnetometerCalibration; | ||
} | ||
@@ -36,2 +43,3 @@ declare const MagnetometerService_base: new () => TypedDispatcher<MagnetometerEvents>; | ||
private init; | ||
calibrate(): Promise<void>; | ||
readMagnetometerData(): Promise<MagnetometerData>; | ||
@@ -41,3 +49,5 @@ getMagnetometerBearing(): Promise<number | undefined>; | ||
setMagnetometerPeriod(frequency: MagnetometerPeriod): Promise<void>; | ||
private getCharacteristic; | ||
private getCharacteristValue; | ||
private startNotifications; | ||
private onNewListener; | ||
@@ -47,4 +57,5 @@ private onRemoveListener; | ||
private magnetometerBearingChangedHandler; | ||
private magnetometerCalibrationChangedHandler; | ||
private dataViewToMagnetometerData; | ||
} | ||
export {}; |
@@ -29,2 +29,3 @@ /// <reference types="web-bluetooth" /> | ||
private getCharacteristValue; | ||
private startNotifications; | ||
private onNewListener; | ||
@@ -31,0 +32,0 @@ private onRemoveListener; |
@@ -0,1 +1,3 @@ | ||
/// <reference types="web-bluetooth" /> | ||
import { TypedDispatcher } from "../event-dispatcher"; | ||
/** | ||
@@ -12,1 +14,22 @@ * @hidden | ||
} | ||
export interface UartEvents { | ||
newListener: keyof UartEvents; | ||
removeListener: keyof UartEvents; | ||
receive: Uint8Array; | ||
receiveString: string; | ||
} | ||
declare const UartService_base: new () => TypedDispatcher<UartEvents>; | ||
export declare class UartService extends UartService_base { | ||
private service; | ||
static createService(services: BluetoothRemoteGATTService[]): Promise<UartService | undefined>; | ||
constructor(service: BluetoothRemoteGATTService); | ||
private init; | ||
send(value: BufferSource): Promise<void>; | ||
sendString(value: string): Promise<void>; | ||
private startNotifications; | ||
private onNewListener; | ||
private onRemoveListener; | ||
private receiveHandler; | ||
private receiveStringHandler; | ||
} | ||
export {}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
13
79
1
1242659
65
3238
4