Internet of Things Programming with JavaScript
LearntheartofbringingtheInternetofThingsintoyourprojectswiththepowerofJavaScriptAboutThisBook?ThisisapracticalguidetohelpyouconfigureandbuildacompletedistributedIoTsystemfromscratchusingJavaScript?UtilizethepowerofNodeandHTML5todevelopwebservicesandacentralizedwebserver,enablinghigh-levelcommunicationbetweenconnecteddevices?ControlallyourconnecteddevicesfromthebrowserbysettingupacommondashboardWhoThisBookIsForThisbookisfordeveloperswhoareinterestedinlearninghowtocommunicatewithconnecteddevicesinJavaScripttosetupanIoTsystem.SomebasicknowledgeofJavaScriptisexpected.HobbyistswhowanttoexplorethepotentialofIoTinJavaScriptwillalsofindthisbookuseful.WhatYouWillLearn?DeveloptheskillstoconnecteddevicespreparedthefieldtointeractwiththedevicesinanetworksystemInternetofThings?Findouthowtoconnectsensorsandactuatorstothedevices?Senddatatoawebserverconnecteddevices?UnderstandInternetofthingsusingwebservicesanddatabase?ConfigureadashboardusingHTML5andJavaScript?Controldevicesconnectedfromadashboard?Monitordifferentdevicesfromthedashboard?BuildanappforasmartphonetocontroldifferentdevicesInDetailTheInternetofThings(IoT)isanentirelynewplatformfordevelopersandengineers,butonethingthatremainsconsistentaswemoveintothisnewworld,aretheprogramminglanguages.JavaScriptisthemostwidelyusedlanguageovertheInternet,andwithIoTgainingmomentum,youwilllearnhowtoharnessthepowerofJavaScripttointeractwithconnecteddevices.ThisbookwillteachyouhowtointeractwithendpointdevicesbydevelopingwebservicesinJavaScriptandalsosetupaninterfacetocontrolallconnecteddevices.Thisbookbeginswithsettingupacentralizedwebserverthatservesasahubforallconnecteddevices.Thebookthenprogressesfurthertowardsbuildingwebservicestofacilitatehigh-levelcommunicationbetweenconnecteddevices.UsingArduinoandRaspberryPiZeroasendpointdevices,thebookwillshowyouhowdevicescancommunicatewitheachother,performawiderangeoftasks,andalsobecontrolledfromacentralizedlocationusingJavaScript.Thebookendswithcreatingahybridapptocontrolthedevicesthatcanberunfromabrowserorinstalledonasmartphone.StyleandapproachThisbookoffersstep-by-stepguidanceonhowtosetupadistributedIoTsystemusingJavaScript.ItwillteachyouhowtointeractwithendpointdevicesbydevelopingwebservicesinJavaScriptandalsosetupaninterfaceforcontrollingallconnecteddevices.
·2.6萬字