getDeviceCurrentTH

Return current temperature and humidity for specified device.

Usage

  const temphumd = await connection.getDeviceCurrentTH('<your device id>');
  console.log(temphumd);

* Remember to instantiate class before use

Response example

  {
    status: 'ok',
    temperature: '20',
    humidity: '76'
  }
Last update on: September 29th, 2019