Web page code: open and close every time?

Supporting Browser-based Javascript and Node.js
Post Reply
khun
Phidgetly
Posts: 29
Joined: Tue Oct 27, 2020 8:44 am
Contact:

Web page code: open and close every time?

Post by khun »

I have trouble getting a web page for controlling Phidgets to work. It seems like things work one time after rebooting, then stop.

I have buttons on the page for turning on/off DigitalOutputs. If my "Load" code connects to the Phidget and opens all DigitalOutput channels, are they still available when the user presses a button and the program goes to the onClick code?

Or do I have to make a new connection and open (and close) the DigitalOutput every time the user presses the button?

I can't any of these scenarios to work...
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests