What does Phidget22.Connection do?
Posted: Sun Feb 19, 2023 1:30 pm
I find examples like these for web pages:
function connectPhidgets() {
var local = location.hostname; //get host location
var conn = new phidget22.Connection(8080, local);
conn.connect().then(runExample);
}
What is happening here? Why would I need to do this in a web page (index.html), in python I just open the DigitalOutput without making any "connection"?
function connectPhidgets() {
var local = location.hostname; //get host location
var conn = new phidget22.Connection(8080, local);
conn.connect().then(runExample);
}
What is happening here? Why would I need to do this in a web page (index.html), in python I just open the DigitalOutput without making any "connection"?