Community
cancel
Showing results for 
Search instead for 
Did you mean: 
KSels
New Contributor II
1,248 Views

i2c error - Illegal arguments

Jump to solution

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

Tags (1)
0 Kudos

Accepted Solutions
asss
Valued Contributor II
54 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
55 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