Closed bbx10 closed 9 years ago
The fix also works with the sh21t sensor. Thank you @bbx10
I found this change is no longer needed because @kib357 added plain read/write which provides the equivalent functionality. I verified plain read() works with the htu21df temperature and humidity sensor. I will try to close/delete this pull request.
Add an option to readBytes to make the htu21df sensor work on a Raspberry Pi.
For example, read 3 bytes without sending the command/register parameter. readBytes(null, 3, function(err, data) {});