Cloud-Automation / chrome-modbus

Modbus/TCP for Chrome Apps.
MIT License
33 stars 17 forks source link

Failed to run examples #1

Closed jakehawkes closed 9 years ago

jakehawkes commented 9 years ago

Error is: Uncaught TypeError: Cannot read property 'tcp' of undefinedmodbus.min.js:1 ModbusClientmain.js:17 (anonymous function)main.js:103 (anonymous function)

I'm on Windows/cygwin, with a fresh install of bower and chrome-modbus, running in Chrome Version 39.0.2171.95 m

Cloud-Automation commented 9 years ago

Can you post some code pieces?

jakehawkes commented 9 years ago

Sure thing. It is the "example_02" that I'm trying to run via a local WAMP install.

<!doctype html>

jsModbus Chrome App Example 01

My Chrome javascript console is saying that line #1 of modbus.min.js

Am I using the wrong version of jquery? I'm not using the jquery included in the examples, because Chrome was complaining about a missing ".map" file.

-J


jakehawkes@computer.org +1 587 225 2276

On Thu, Aug 27, 2015 at 1:27 PM, Cloud Automation notifications@github.com wrote:

Can you post some code pieces?

— Reply to this email directly or view it on GitHub https://github.com/Cloud-Automation/chrome-modbus/issues/1#issuecomment-135529971 .

Cloud-Automation commented 9 years ago

You need to run it as a chrome app or chrome extension. Otherwise there is no global chrome interface. That's why it is undefined.

jakehawkes commented 9 years ago

sheepish sorry, I guessed I missed that critical piece of info.... Are you aware of any cross-browser equivalent?


jakehawkes@computer.org +1 587 225 2276

On Thu, Aug 27, 2015 at 2:16 PM, Cloud Automation notifications@github.com wrote:

You need to run it as a chrome app or chrome extension. Otherwise there is no global chrome interface. That's why it is undefined.

— Reply to this email directly or view it on GitHub https://github.com/Cloud-Automation/chrome-modbus/issues/1#issuecomment-135540145 .

Cloud-Automation commented 9 years ago

You mean like for a Firefox app? Nope, but feel free to fork :-)