Humiture()

Humiture sensor module

Extends

  • Electronic

Members

protocol

getter of protocol

Methods

async getData() → {Promise}

获取数据

Returns:
Promise
Example
mcore.Humiture(1)
     .readTemperature()
     .getData()
     .then((val) => {
       console.log(val)
     });

readHumidity() → {Instance}

Get Humidity of Humiture sensor

Returns:
Instance -

@this

Example
mcore.Humiture(1)
     .readHumidity()
     .getData()
     .then((val) => {
       console.log(val)
      });

readTemperature() → {Instance}

Get Temperature of Humiture sensor

Returns:
Instance -

@this

Example
mcore.Humiture(1)
     .readTemperature()
     .getData()
     .then((val) => {
       console.log(val)
     });