Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9872 Discussions

i2c error - Illegal arguments

KSels
New Contributor II
1,356 Views

I tryed to read temperature data from an i2c device and only get errors.

Does anyone know what that is

Upload Complete

MRAA Version: v0.9.4

ERROR: /home/root/.node_app_slot/server.js:23

ERROR: var temp = new mcp.MCP9808(0);

ERROR: ^

ERROR: Error: Illegal arguments for construction of _exports_MCP9808

at Object. (/home/root/.node_app_slot/server.js:23:12)

at Module._compile (module.js:456:26)

at Object.Module._extensions..js (module.js:474:10)

at Module.load (module.js:356:32)

at Function.Module._load (module.js:312:12)

at Function.Module.runMain (module.js:497:10)

at startup (node.js:119:16)

at node.js:935:3

0 Kudos
1 Solution
asss
Valued Contributor II
162 Views

Hi,

this is a default exception in UPM module called mcp9808.

Probably this is a UPM module bug.

Please post this issue with NodeJS version and environment description on

https://github.com/intel-iot-devkit/upm/issues Issues · intel-iot-devkit/upm · GitHub

BR,

xbolshe

View solution in original post

1 Reply
asss
Valued Contributor II
163 Views

Hi,

this is a default exception in UPM module called mcp9808.

Probably this is a UPM module bug.

Please post this issue with NodeJS version and environment description on

https://github.com/intel-iot-devkit/upm/issues Issues · intel-iot-devkit/upm · GitHub

BR,

xbolshe

Reply