webduino.Module

文章推薦指數: 80 %
投票人數:10人

Defined in src/core/Module.js:12. Methods. addListener. (. type; listener. ) Inherited from webduino.EventEmitter: src/core/EventEmitter.js:117. webduino-js APIDocsforVersion:0.7.0 webduino.Board webduino.EventEmitter webduino.Module webduino.module.ADXL345 webduino.module.Barcode webduino.module.Button webduino.module.Buzzer webduino.module.Dht webduino.module.HX711 webduino.module.IRLed webduino.module.IRRecv webduino.module.Led webduino.module.Max7219 webduino.module.Photocell webduino.module.RFID webduino.module.RGBLed webduino.module.Soil webduino.module.Ultrasonic webduino.Transport webduino.transport.MqttTransport webduino.transport.NodeMqttTransport Show: Inherited Protected Private Deprecated webduino.Module Extendswebduino.EventEmitter Acomponenttobeattachedtoaboard.Thisisanabstractclassmeanttobeextended. TableofContents Methods addListener(typelistener) emit(typeobject,...) listeners(type) on(typelistener) once(typelistener) removeAllListeners(type) removeListener(typelistener) setMaxListeners(n) Attributes type Constructor webduino.Module () Definedin src/core/Module.js:12 Methods addListener ( type listener ) Inheritedfrom webduino.EventEmitter: src/core/EventEmitter.js:117 Addalistenerforacertaintypeofevent. Parameters: type String Eventtype. listener Function Eventlistener. emit ( type object,... ) Inheritedfrom webduino.EventEmitter: src/core/EventEmitter.js:58 Emitaneventofcertaintype. Parameters: type String Eventtype. [object,...] Object optional Eventobject(s). listeners ( type ) Inheritedfrom webduino.EventEmitter: src/core/EventEmitter.js:310 Returnthelistenerlistboundtocertaintypeofevent. Parameters: type String Evnettype. on ( type listener ) Inheritedfrom webduino.EventEmitter: src/core/EventEmitter.js:174 AliasforEventEmitter.addListener(type,listener) Parameters: type String Eventtype. listener Function Eventlistener. once ( type listener ) Inheritedfrom webduino.EventEmitter: src/core/EventEmitter.js:183 Addaone-timelistenerforacertaintypeofevent. Parameters: type String Eventtype. listener Function Eventlistener. removeAllListeners ( type ) Inheritedfrom webduino.EventEmitter: src/core/EventEmitter.js:264 Removealllistenersofcertaintype. Parameters: type String Eventtype. removeListener ( type listener ) Inheritedfrom webduino.EventEmitter: src/core/EventEmitter.js:211 Removealistenerforcertaintypeofevent. Parameters: type String Eventtype. listener Function Eventlistener. setMaxListeners ( n ) Inheritedfrom webduino.EventEmitter: src/core/EventEmitter.js:45 Setmaximumnumberoflistenersthatisallowtobindonanemitter. Parameters: n Number Numberoflisteners. Attributes type String readonly Definedin src/core/Module.js:30 Typeofthemodule.



請為這篇文章評分?