GithubHelp home page GithubHelp logo

rxseger / homebridge-bme280 Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 14.0 27 KB

BME280 temperature/humidity/pressure sensor bridge for Homebridge: https://github.com/nfarina/homebridge

License: MIT License

JavaScript 100.00%

homebridge-bme280's People

Contributors

northernman54 avatar rxseger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

homebridge-bme280's Issues

Does the logger work only with bme280 or can it be used with other plugins as well?

Hi.

I'm using homebridge-mqtthing to connect Xiaomi Aqara temperature and humidity sensors to HomeKit.

I stumbled upon this github searching for a way to log sensor data to and wondering if I could use with Xiaomi Aqara.

I installed the mcuiot-logger on its own (sudo npm install -g mcuiot-logger) and set it up (sucessfully it seems) with my google account and a spreadsheet following the instructions. Have updated the my homebridge accessories with the spreadsheetID option too, however, it's doesn't seem to be logging anything. Could that maybe be because it is bme280 only? Wonder if it can be expanded.

Thanks.

Init Error

Hi, after update to the latest homebridge, this is the error showing in the log:

BME read error: You must first call bme280.init()

Homebridge v1.4.1
Node.js Version v16.15.0

npm install old release 1.2.0

version 1.2.0 is installed from the homebridge plugins page instead of the new version 1.2.4 released by NorthernMan54

Pressure for homeBridge

The sensor only shows temperature and humidity. Please add a parameter for the pressure. I tried modifying the script and adding the name_pressure variable. But it didn't work.

Error: BME280 Not Initalized

Homebridge is loading and everything is running but every time the data of the sensor is polled (every minute) I get the message

[Date] [Sensor] Error: BME280 Not Initalized

Sensor is working fine using for example this script.

Any idea?

Feature Request: pressure

Hello, I have read that the BME280 is capable of measuring the pressure. Is it possible to implement this in your plugin?
Thanks.

BEP180

Hi, this is not an issue but rather a question.

I have a BME180 sensor and thinking if this will work using the BME280. If not i believe modifying the code will enable it.

thanks

problem with [email protected] (please change to last i2c version)

Node.js v12.16.1
npm v6.14.2

pi@domepi:~ $ sudo npm install -g --unsafe-perm homebridge-bme280
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142

[email protected] install /usr/local/lib/node_modules/homebridge-bme280/node_modules/i2c-bus
node-gyp rebuild

make: Entering directory '/usr/local/lib/node_modules/homebridge-bme280/node_modules/i2c-bus/build'
CXX(target) Release/obj.target/i2c/src/i2c.o
In file included from ../../nan/nan_converters.h:67,
from ../../nan/nan.h:202,
from ../src/i2c.cc:2:
../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBasev8::Boolean::return_t Nan::imp::ToFactoryv8::Boolean::convert(v8::Localv8::Value)’:
../../nan/nan_converters_43_inl.h:18:69: warning: ‘v8::MaybeLocalv8::Boolean v8::Value::ToBoolean(v8::Localv8::Context) const’ is deprecated: ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
val->To ## TYPE(v8::Isolate::GetCurrent()->GetCurrentContext())
^
../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
X(Boolean)
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14,
from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27,
from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2664:59: note: declared here
V8_WARN_UNUSED_RESULT MaybeLocal ToBoolean(
^~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_converters.h:67,
from ../../nan/nan.h:202,
from ../src/i2c.cc:2:
../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase::return_t Nan::imp::ToFactory::convert(v8::Localv8::Value’:
../../nan/nan_converters_43_inl.h:37:57: warning: ‘v8::Maybe v8::Value::BooleanValue(v8::Localv8::Context) const’ is deprecated: BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations]
return val->NAME ## Value(isolate->GetCurrentContext());
^
../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
X(bool, Boolean)
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14,
from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27,
from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2702:51: note: declared here
V8_WARN_UNUSED_RESULT Maybe BooleanValue(
^~~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../../nan/nan_new.h:189,
from ../../nan/nan.h:203,
from ../src/i2c.cc:2:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBasev8::Function::return_t Nan::imp::Factoryv8::Function::New(Nan::FunctionCallback, v8::Localv8::Value)’:
../../nan/nan_implementation_12_inl.h:105:32: error: no matching function for call to ‘v8::Function::New(v8::Isolate*&, void (&)(const v8::FunctionCallbackInfov8::Value&), v8::Localv8::Object&)’
, obj));
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:4275:31: note: candidate: ‘static v8::MaybeLocalv8::Function v8::Function::New(v8::Localv8::Context, v8::FunctionCallback, v8::Localv8::Value, int, v8::ConstructorBehavior, v8::SideEffectType)’
static MaybeLocal New(
^~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:4275:31: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Localv8::Context’
In file included from ../../nan/nan_new.h:189,
from ../../nan/nan.h:203,
from ../src/i2c.cc:2:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBasev8::StringObject::return_t Nan::imp::Factoryv8::StringObject::New(v8::Localv8::String)’:
../../nan/nan_implementation_12_inl.h:337:37: error: no matching function for call to ‘v8::StringObject::New(v8::Localv8::String&)’
return v8::StringObject::New(value).Asv8::StringObject();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:5531:23: note: candidate: ‘static v8::Localv8::Value v8::StringObject::New(v8::Isolate*, v8::Localv8::String)’
static Local New(Isolate* isolate, Local value);
^~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:5531:23: note: candidate expects 2 arguments, 1 provided
In file included from ../../nan/nan_new.h:189,
from ../../nan/nan.h:203,
from ../src/i2c.cc:2:
../../nan/nan_implementation_12_inl.h:337:58: error: expected primary-expression before ‘>’ token
return v8::StringObject::New(value).Asv8::StringObject();
^
../../nan/nan_implementation_12_inl.h:337:60: error: expected primary-expression before ‘)’ token
return v8::StringObject::New(value).Asv8::StringObject();
^
In file included from ../src/i2c.cc:2:
../../nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’:
../../nan/nan.h:840:60: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, func, argc, argv);
^
In file included from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/node.h:174:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/node.h:93:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:2:
../../nan/nan.h:840:60: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, func, argc, argv);
^
In file included from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/node.h:174:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/node.h:93:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:2:
../../nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value
)’:
../../nan/nan.h:855:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate*, v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, symbol, argc, argv);
^
In file included from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/node.h:167:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/node.h:93:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:2:
../../nan/nan.h:855:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, symbol, argc, argv);
^
In file included from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/node.h:167:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/node.h:93:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:2:
../../nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, const char
, int, v8::Localv8::Value)’:
../../nan/nan.h:870:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, const char*, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, method, argc, argv);
^
In file included from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/node.h:160:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/node.h:93:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:2:
../../nan/nan.h:870:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, const char*, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, method, argc, argv);
^
In file included from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/node.h:160:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/node.h:93:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:2:
../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Localv8::Value)’:
../../nan/nan.h:916:53: error: no matching function for call to ‘v8::Value::ToString()’
v8::Localv8::String string = from->ToString();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2668:44: note: candidate: ‘v8::MaybeLocalv8::String v8::Value::ToString(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT MaybeLocal ToString(
^~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2668:44: note: candidate expects 1 argument, 0 provided
In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14,
from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27,
from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2684:31: note: candidate: ‘v8::Localv8::String v8::Value::ToString(v8::Isolate
) const’
Local ToString(Isolate* isolate) const);
^~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2684:31: note: candidate expects 1 argument, 0 provided
Local ToString(Isolate* isolate) const);
^~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/i2c.cc:2:
../../nan/nan.h:926:74: error: no matching function for call to ‘v8::String::WriteUtf8(char*&, int, int, const int&)’
length_ = string->WriteUtf8(str_, static_cast(len), 0, flags);
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’
int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
^~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’
In file included from ../src/i2c.cc:2:
../../nan/nan.h: In member function ‘v8::Localv8::Value Nan::Callback::Call_(v8::Isolate*, v8::Localv8::Object, int, v8::Localv8::Value) const’:
../../nan/nan.h:1484:5: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
));
^
In file included from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/node.h:174:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/node.h:93:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:2:
../../nan/nan.h:1484:5: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate
, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
));
^
In file included from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/node.h:174:50: note: declared here
NODE_EXTERN v8::Localv8::Value MakeCallback(
^~~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/node.h:93:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/i2c.cc:2:
../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char
, const v8::Localv8::Value&)’:
../../nan/nan.h:1538:64: warning: ‘bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14,
from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27,
from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:3499:22: note: declared here
bool Set(Local key, Local value));
^~~
/root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/i2c.cc:2:
../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Localv8::String&, const v8::Localv8::Value&)’:
../../nan/nan.h:1544:42: warning: ‘bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Set(key, value);
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14,
from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27,
from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:3499:22: note: declared here
bool Set(Local key, Local value));
^~~
/root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/i2c.cc:2:
../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Localv8::Value&)’:
../../nan/nan.h:1550:44: warning: ‘bool v8::Object::Set(uint32_t, v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Set(index, value);
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14,
from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27,
from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:3508:22: note: declared here
bool Set(uint32_t index, Local value));
^~~
/root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/i2c.cc:2:
../../nan/nan.h: In member function ‘v8::Localv8::Value Nan::AsyncWorker::GetFromPersistent(const char*) const’:
../../nan/nan.h:1556:61: warning: ‘v8::Localv8::Value v8::Object::Get(v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Get(New(key).ToLocalChecked()));
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14,
from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27,
from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:3553:51: note: declared here
V8_DEPRECATED("Use maybe version", Local Get(Local key));
^~~
/root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/i2c.cc:2:
../../nan/nan.h: In member function ‘v8::Localv8::Value Nan::AsyncWorker::GetFromPersistent(const v8::Localv8::String&) const’:
../../nan/nan.h:1562:55: warning: ‘v8::Localv8::Value v8::Object::Get(v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return scope.Escape(New(persistentHandle)->Get(key));
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14,
from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27,
from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:3553:51: note: declared here
V8_DEPRECATED("Use maybe version", Local Get(Local key));
^~~
/root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/i2c.cc:2:
../../nan/nan.h: In member function ‘v8::Localv8::Value Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
../../nan/nan.h:1567:57: warning: ‘v8::Localv8::Value v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return scope.Escape(New(persistentHandle)->Get(index));
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14,
from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27,
from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:3557:51: note: declared here
V8_DEPRECATED("Use maybe version", Local Get(uint32_t index));
^~~
/root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/i2c.cc:2:
../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../nan/nan.h:1875:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type]
, reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
^
In file included from /usr/include/c++/8/cassert:44,
from /root/.cache/node-gyp/12.16.1/include/node/node_object_wrap.h:26,
from ../../nan/nan.h:53,
from ../src/i2c.cc:2:
../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistentv8::Object’ has no member named ‘IsNearDeath’
assert(persistent().IsNearDeath());
^~~~~~~~~~~
In file included from ../../nan/nan.h:2365,
from ../src/i2c.cc:2:
../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
../../nan/nan_object_wrap.h:67:34: warning: ‘void v8::PersistentBase::MarkIndependent() [with T = v8::Object]’ is deprecated: Weak objects are always considered independent. Use TracedGlobal when trying to use EmbedderHeapTracer. Use a strong handle when trying to keep an object alive. [-Wdeprecated-declarations]
persistent().MarkIndependent();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14,
from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27,
from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:570:22: note: declared here
V8_INLINE void MarkIndependent());
^~~~~~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from /usr/include/c++/8/cassert:44,
from /root/.cache/node-gyp/12.16.1/include/node/node_object_wrap.h:26,
from ../../nan/nan.h:53,
from ../src/i2c.cc:2:
../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfoNan::ObjectWrap&)’:
../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistentv8::Object’ has no member named ‘IsNearDeath’
assert(wrap->handle_.IsNearDeath());
^~~~~~~~~~~
In file included from ../src/i2c.cc:1:
../src/i2c.cc: At global scope:
/root/.cache/node-gyp/12.16.1/include/node/node.h:601:43: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type]
(node::addon_register_func) (regfunc),
^
/root/.cache/node-gyp/12.16.1/include/node/node.h:635:3: note: in expansion of macro ‘NODE_MODULE_X’
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^~~~~~~~~~~~~
../src/i2c.cc:88:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(i2c, InitAll)
^~~~~~~~~~~
In file included from ../src/i2c.cc:95:
../src/./i2cfuncs.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE I2cFuncsAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./i2cfuncs.cc:48:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:95:
../src/./i2cfuncs.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE I2cFuncsSync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./i2cfuncs.cc:60:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:96:
../src/./readbyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadByteAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./readbyte.cc:49:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:96:
../src/./readbyte.cc:50:34: error: no matching function for call to ‘v8::Value::Int32Value()’
__u8 cmd = info[1]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:96:
../src/./readbyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadByteSync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./readbyte.cc:62:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:96:
../src/./readbyte.cc:63:34: error: no matching function for call to ‘v8::Value::Int32Value()’
__u8 cmd = info[1]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:97:
../src/./readword.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadWordAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./readword.cc:49:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:97:
../src/./readword.cc:50:34: error: no matching function for call to ‘v8::Value::Int32Value()’
__u8 cmd = info[1]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:97:
../src/./readword.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadWordSync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./readword.cc:62:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:97:
../src/./readword.cc:63:34: error: no matching function for call to ‘v8::Value::Int32Value()’
__u8 cmd = info[1]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:98:
../src/./readblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadBlockAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./readblock.cc:66:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:98:
../src/./readblock.cc:67:34: error: no matching function for call to ‘v8::Value::Int32Value()’
__u8 cmd = info[1]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:98:
../src/./readblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadBlockSync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./readblock.cc:98:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:98:
../src/./readblock.cc:99:34: error: no matching function for call to ‘v8::Value::Int32Value()’
__u8 cmd = info[1]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:99:
../src/./readi2cblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadI2cBlockAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./readi2cblock.cc:69:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:99:
../src/./readi2cblock.cc:70:34: error: no matching function for call to ‘v8::Value::Int32Value()’
__u8 cmd = info[1]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:99:
../src/./readi2cblock.cc:71:39: error: no matching function for call to ‘v8::Value::Uint32Value()’
__u32 length = info[2]->Uint32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:99:
../src/./readi2cblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReadI2cBlockSync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./readi2cblock.cc:109:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:99:
../src/./readi2cblock.cc:110:34: error: no matching function for call to ‘v8::Value::Int32Value()’
__u8 cmd = info[1]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:99:
../src/./readi2cblock.cc:111:39: error: no matching function for call to ‘v8::Value::Uint32Value()’
__u32 length = info[2]->Uint32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:100:
../src/./receivebyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReceiveByteAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./receivebyte.cc:48:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:100:
../src/./receivebyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE ReceiveByteSync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./receivebyte.cc:60:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:101:
../src/./sendbyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE SendByteAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./sendbyte.cc:47:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:101:
../src/./sendbyte.cc:48:35: error: no matching function for call to ‘v8::Value::Int32Value()’
__u8 byte = info[1]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:101:
../src/./sendbyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE SendByteSync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./sendbyte.cc:60:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:101:
../src/./sendbyte.cc:61:35: error: no matching function for call to ‘v8::Value::Int32Value()’
__u8 byte = info[1]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:102:
../src/./setaddr.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE SetAddrAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./setaddr.cc:47:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:102:
../src/./setaddr.cc:48:34: error: no matching function for call to ‘v8::Value::Int32Value()’
int addr = info[1]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:102:
../src/./setaddr.cc:49:44: error: no matching function for call to ‘v8::Value::BooleanValue()’
bool forceAccess = info[2]->BooleanValue();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2699:8: note: candidate: ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
bool BooleanValue(Isolate* isolate) const;
^~~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2699:8: note: candidate expects 1 argument, 0 provided
In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14,
from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27,
from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2702:51: note: candidate: ‘v8::Maybe v8::Value::BooleanValue(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe BooleanValue(
^~~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2702:51: note: candidate expects 1 argument, 0 provided
V8_WARN_UNUSED_RESULT Maybe BooleanValue(
^~~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/i2c.cc:102:
../src/./setaddr.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE SetAddrSync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./setaddr.cc:61:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:102:
../src/./setaddr.cc:62:34: error: no matching function for call to ‘v8::Value::Int32Value()’
int addr = info[1]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:102:
../src/./setaddr.cc:63:44: error: no matching function for call to ‘v8::Value::BooleanValue()’
bool forceAccess = info[2]->BooleanValue();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2699:8: note: candidate: ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
bool BooleanValue(Isolate* isolate) const;
^~~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2699:8: note: candidate expects 1 argument, 0 provided
In file included from /root/.cache/node-gyp/12.16.1/include/node/v8-internal.h:14,
from /root/.cache/node-gyp/12.16.1/include/node/v8.h:27,
from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2702:51: note: candidate: ‘v8::Maybe v8::Value::BooleanValue(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe BooleanValue(
^~~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2702:51: note: candidate expects 1 argument, 0 provided
V8_WARN_UNUSED_RESULT Maybe BooleanValue(
^~~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^~~~~~~~~~
In file included from ../src/i2c.cc:103:
../src/./writebyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteByteAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./writebyte.cc:49:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:103:
../src/./writebyte.cc:50:34: error: no matching function for call to ‘v8::Value::Int32Value()’
__u8 cmd = info[1]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:103:
../src/./writebyte.cc:51:35: error: no matching function for call to ‘v8::Value::Int32Value()’
__u8 byte = info[2]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:103:
../src/./writebyte.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteByteSync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./writebyte.cc:63:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:103:
../src/./writebyte.cc:64:34: error: no matching function for call to ‘v8::Value::Int32Value()’
__u8 cmd = info[1]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:103:
../src/./writebyte.cc:65:35: error: no matching function for call to ‘v8::Value::Int32Value()’
__u8 byte = info[2]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:104:
../src/./writeword.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteWordAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./writeword.cc:49:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:104:
../src/./writeword.cc:50:34: error: no matching function for call to ‘v8::Value::Int32Value()’
__u8 cmd = info[1]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:104:
../src/./writeword.cc:51:36: error: no matching function for call to ‘v8::Value::Int32Value()’
__u16 word = info[2]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:104:
../src/./writeword.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteWordSync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./writeword.cc:64:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:104:
../src/./writeword.cc:65:34: error: no matching function for call to ‘v8::Value::Int32Value()’
__u8 cmd = info[1]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:104:
../src/./writeword.cc:66:36: error: no matching function for call to ‘v8::Value::Int32Value()’
__u16 word = info[2]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:105:
../src/./writeblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteBlockAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./writeblock.cc:70:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:105:
../src/./writeblock.cc:71:34: error: no matching function for call to ‘v8::Value::Int32Value()’
__u8 cmd = info[1]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:105:
../src/./writeblock.cc:72:39: error: no matching function for call to ‘v8::Value::Uint32Value()’
__u32 length = info[2]->Uint32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:105:
../src/./writeblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteBlockSync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./writeblock.cc:110:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:105:
../src/./writeblock.cc:111:34: error: no matching function for call to ‘v8::Value::Int32Value()’
__u8 cmd = info[1]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:105:
../src/./writeblock.cc:112:39: error: no matching function for call to ‘v8::Value::Uint32Value()’
__u32 length = info[2]->Uint32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:106:
../src/./writei2cblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteI2cBlockAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./writei2cblock.cc:68:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:106:
../src/./writei2cblock.cc:69:34: error: no matching function for call to ‘v8::Value::Int32Value()’
__u8 cmd = info[1]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:106:
../src/./writei2cblock.cc:70:39: error: no matching function for call to ‘v8::Value::Uint32Value()’
__u32 length = info[2]->Uint32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:106:
../src/./writei2cblock.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteI2cBlockSync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./writei2cblock.cc:108:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:106:
../src/./writei2cblock.cc:109:34: error: no matching function for call to ‘v8::Value::Int32Value()’
__u8 cmd = info[1]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:106:
../src/./writei2cblock.cc:110:39: error: no matching function for call to ‘v8::Value::Uint32Value()’
__u32 length = info[2]->Uint32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate: ‘v8::Maybe v8::Value::Uint32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2707:41: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:107:
../src/./writequick.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteQuickAsync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./writequick.cc:47:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:107:
../src/./writequick.cc:48:34: error: no matching function for call to ‘v8::Value::Int32Value()’
__u8 bit = info[1]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:107:
../src/./writequick.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE WriteQuickSync(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/./writequick.cc:60:32: error: no matching function for call to ‘v8::Value::Int32Value()’
int fd = info[0]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
In file included from ../src/i2c.cc:107:
../src/./writequick.cc:61:34: error: no matching function for call to ‘v8::Value::Int32Value()’
__u8 bit = info[1]->Int32Value();
^
In file included from /root/.cache/node-gyp/12.16.1/include/node/node.h:63,
from ../src/i2c.cc:1:
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate: ‘v8::Maybe v8::Value::Int32Value(v8::Localv8::Context) const’
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h:2709:40: note: candidate expects 1 argument, 0 provided
/root/.cache/node-gyp/12.16.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P*, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’:
/root/.cache/node-gyp/12.16.1/include/node/node_object_wrap.h:85:78: required from here
/root/.cache/node-gyp/12.16.1/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void (
)(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
reinterpret_cast(callback), type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/.cache/node-gyp/12.16.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P
, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’:
../../nan/nan_object_wrap.h:66:61: required from here
/root/.cache/node-gyp/12.16.1/include/node/v8.h:10226:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void (
)(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo&)’} [-Wcast-function-type]
make: *** [i2c.target.mk:111: Release/obj.target/i2c/src/i2c.o] Error 1
make: Leaving directory '/usr/local/lib/node_modules/homebridge-bme280/node_modules/i2c-bus/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:311:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 4.19.97-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-bme280/node_modules/i2c-bus
gyp ERR! node -v v12.16.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-03-14T02_58_34_364Z-debug.log

More info about logging on README

Thanks for your work on this.

It might be nice to add some notes around how the Google Sheets logging works.
Eg. It runs on the read poll, and then after every 60 polls afterwards.

Multiple BME280 sensors

Dear reader,

My idea is to add another BME280 sensor to measure the temperature and humidity outdoor (additionally to my room temp/hum). However, how should I add this? I think there are two options:

  1. Attach the second sensor to the pi over the same sda scl connectors.
  2. Attach the second sensor to another device (pi zero or arduino for example) and send the data over the network.

However, I have not yet managed to get this to work. For option 1 my questions are:
is it possible to connect this sensor in parallel and obtain a unique adress?

For option 2 my questions are:
is it possible to send the BME280 data over the network? If yes, what address should I fill in (guess it should be ip related)?

Error: `make` failed with exit code: 2

Installing the homebridge-bme280 has error.

Node version 12.13.1
homebridge version 0.4.50

Code entered

sudo npm install -g --unsafe-perm https://github.com/NorthernMan54/homebridge-bme280

Error

i2c.target.mk:109: recipe for target 'Release/obj.target/i2c/src/i2c.o' failed
make: *** [Release/obj.target/i2c/src/i2c.o] Error 1
make: Leaving directory '/usr/local/lib/node_modules/homebridge-bme280/node_modules/i2c-bus/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.19.75-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-bme280/node_modules/i2c-bus
gyp ERR! node -v v12.13.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.