You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 1) Register devicesDevices.add({deviceName},{deviceKey});// 2) Read Deviceconstinstance=Devices.read({deviceName},{deviceKey});// A) Analoginstance.Analog.read()// reads analog pin data return a promiseinstance.Analog.loopRead({milliseconds},{callback})// reads analog pin continously in paritcular interval//B) Digitalinstance.Digital.read({pin |pins[]})// read Digital signals of single of multiple pins returns a promiseinstance.Digital.write({IDigitalparams |IDigitlparams[]})// write digital singals instance.Digital.loopRead({pin |pins[]},{milleseconds},{callback})// read digital singals in particular interval//C) UARTinstance.UART.begin({baudRate})//sets the baud rateinstance.UART.read({till})instance.UART.write({data})instance.UART.readWrite({data},{till})//D) utilsinstance.Utility.isOnline()// returns a promise with resolved valueas true/falseinstance.Utility.restart()instance.Utility.version()//E) Api Callback PubSub.api({cb})// the callback will get fired with phases of api callsPubSub.message({cb})// the callback will get fired when libary would send some message to client
//same api follows for browser just it is inside window object as boltApi.Devices.add({deviceName},{deviceKey})
Module is built over typescript so you will get all the necessary intellisense ,for detailed information visit below url