物联网IoT应用开发

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

IoT••••IoT••••/••200117••EricRies2011•MinimumViableProductMVP•ValidatedLearning•••••“”“”•••••GPIO•I2C•C•••……••••••……–·“”IoTIoTApplicationIoTPlatformHardwareIoTRaspberryPIRaspberryPIRaspberryPI•Linux••EbenEpton•2006AtmelATmega6441981AcornComputersBBCMicro•20118Alpha50•201112BetaLinux1080pRightwareSamuraiOpenGLES•20123•20152——2•20151126,——05RaspberryPIArduinoArduinoArduino•Arduino•2004HernandoBarragánWiringMassimoBanziCaseyReas•2005MassimoBanziDavidMellisDavidCuartiellesWiringATmega8•WiringArduino•ArduinoArduinofIvreaArduino••Arduino•ArduinoIDEC/C++Wiring#defineLED_PIN13voidsetup(){pinMode(LED_PIN,OUTPUT);}voidloop(){digitalWrite(LED_PIN,HIGH);delay(1000);digitalWrite(LED_PIN,LOW);delay(1000);}TesselTessel•TesselIoTNode.jsTessel•Node.js••API•Rustvartessel=require('tessel');varambientlib=require('ambient-attx4');varWebSocket=require('ws');varambient=ambientlib.use(tessel.port['A']);varws=newWebSocket('ws://awesome-app.com/ambient');ws.on('open',function(){setInterval(function(){ambient.getSoundLevel(function(err,sdata){if(err)throwerr;sdata.pipe(ws);})},500);});Johnny-FiveJohnny-Five•Johnny-FiveJavaScriptIoTJohnny-Five•2012Bocoup••varfive=require(johnny-five),board=newfive.Board();board.on(ready,function(){varled=newfive.Led(13);led.strobe();});EspruinoEspruino•JavaScriptBoardPicoWebIDEfunctiontoggle(){on=!on;digitalWrite(LED1,on);digitalWrite(LED2,!on);}LiteOSLiteOS•IoT10k155••••••••ms•μs•••+•ProfileCylon.jsCylon.js•Cylon.jsIoTJavaScriptvarCylon=require(cylon);Cylon.robot({connections:{arduino:{adaptor:'firmata',port:'/dev/ttyACM0'}},devices:{led:{driver:'led',pin:13}},work:function(my){every((1).second(),function(){my.led.toggle();});}}).start();APIJerryScriptJerryScript•IoTJavaScriptJerryScript•ECMAScript5.1••C99•SnapshotJavaScriptJerryScriptIoT.js•IoT.jsIoTIoT.js•JerryScriptlibuvIoT.js•AssertBufferDNSEventsFileSystemHTTPModulesNetProcessStreamTimer•GPIOI2C•Linux•Nuttx•RaspberryPI2vari2c=require('i2c');varwire=newi2c(0x23,{device:'/dev/i2c-1'});wire.scan(function(err,data){});IoT.jsIoT•NodeMCULuaESP8266•BrilloGoogleC++•mbedARM•EdisonIntelIoTIoT••••••••GC•••AndersHejlsberg•••••••MCU••

1 / 90
下载文档,编辑使用

©2015-2020 m.111doc.com 三一刀客.

备案号:赣ICP备18015867号-1 客服联系 QQ:2149211541

×
保存成功