webduino.Module
文章推薦指數: 80 %
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.
延伸文章資訊
- 1webduino-js - npm
The Webduino Javascript Core, for Browser and Node.js. Installation. Browser. Using bower: $ bowe...
- 2日幣匯率( Node-js 爬蟲) - Webduino 實戰智慧插座教學
日幣匯率( Node-js 爬蟲). 前一篇透過Node-RED 即時地抓取日幣匯率,這邊要繼續介紹Node.js 的做法,輕鬆實現「抓取日幣匯率,並且在指定匯率到達的時候用Webduino 點...
- 3Webduino 基礎教學
Webduino 開發模式其實就是「Web 開發模式」,簡單來說如果要「透過網頁」控制物聯網的開發板,必須在網頁裡頭載入對應的JavaScript,才能使用對應的API 來操控開發板 ...
- 4人臉、顏色追蹤- Webduino 實戰智慧插座教學
要使用tracking.js,首先必須載入相對應的JavaScript,tracking.js 預設可以追蹤顏色。 <script src="https://blockly.webduino.i...
- 5webduinoio/webduino-js - GitHub
The Webduino Javascript Core, for Browser and Node.js - GitHub - webduinoio/webduino-js: ⚙️ The W...