Search Results

by jnbastoky
Fri Dec 13, 2024 5:56 am
Forum: Javascript
Topic: Node-RED digitaloutput node missing break statement.
Replies: 2
Views: 39052

Re: Node-RED digitaloutput node missing break statement.

Is this Node Red module still supported? Any chance this will get patched?
by jnbastoky
Thu Dec 05, 2024 6:48 am
Forum: Javascript
Topic: Node-RED digitaloutput node missing break statement.
Replies: 2
Views: 39052

Re: Node-RED digitaloutput node missing break statement.

here's the patch --- node_modules/node-red-contrib-phidget22/dist/phidget22-digitaloutput.js +++ phidget22-digitaloutput.js @@ -43,6 +43,7 @@ } case 'setState': { invokeMethod(function () { var _a; return digitalOutput.setState((_a = msg.payload) === null || _a === void 0 ? void 0 : _a.state); }, 's...
by jnbastoky
Tue Nov 05, 2024 7:38 pm
Forum: Javascript
Topic: Node-RED digitaloutput node missing break statement.
Replies: 2
Views: 39052

Node-RED digitaloutput node missing break statement.

In the Node-RED library phidget22-digitalout.js is missing the break; statement at the end of case 'setState' (line 46). This is causing the default case to get executed even through setState matches and is therefore generating an incorrect error.
by jnbastoky
Tue Sep 27, 2022 2:17 pm
Forum: All Other Phidgets
Topic: Unable to upgrade PhidgetBridge Firmware to V102
Replies: 1
Views: 34423

Unable to upgrade PhidgetBridge Firmware to V102

I'm unable to upgrade the firmware of a 1046_0 PhidgetBridge to v102. The PhidgetBridge is report v101: $ phidget22admin -d phidgetsbc - (293371) PhidgetBridge 4-Input v101 (293371//0) Bridge Input (293371//1) Bridge Input (293371//2) Bridge Input (293371//3) Bridge Input No upgradable devices are f...
by jnbastoky
Thu Sep 08, 2022 7:27 am
Forum: InterfaceKits
Topic: Failsafe for PhidgetInterfaceKit 0/0/4
Replies: 2
Views: 43993

Re: Failsafe for PhidgetInterfaceKit 0/0/4

Excellent. Thanks
by jnbastoky
Sat Aug 13, 2022 3:24 pm
Forum: InterfaceKits
Topic: Failsafe for PhidgetInterfaceKit 0/0/4
Replies: 2
Views: 43993

Failsafe for PhidgetInterfaceKit 0/0/4

What is the likelihood that the failsafe feature will be added to the PhidgetInterfaceKit 0/0/4 firmware?
by jnbastoky
Sat Jun 25, 2022 6:31 pm
Forum: Python
Topic: REL1100 Error Handler Callback Description Datatype
Replies: 1
Views: 36893

REL1100 Error Handler Callback Description Datatype

The description data type in the error handler for the REL110 will return different data types at different times. Sometimes I get a str . Other times it's bytes . It seems to alternate between the two Here's the callback handler. I'm printing the data type of the description callback parameter to c...
by jnbastoky
Sun Sep 19, 2021 12:34 pm
Forum: Python
Topic: Calling getAttached() in attach handler
Replies: 1
Views: 38455

Calling getAttached() in attach handler

I was troubleshooting an issue with setting the RTD type of a temperature sensor in the attach handler. In the process I discovered calling getAttached() on the channel gives a False result. If the attach handler is called then the channel should be attached, right? It appears that maybe the attache...
by jnbastoky
Sat Sep 18, 2021 1:39 pm
Forum: Python
Topic: open() timeout
Replies: 2
Views: 39235

Re: open() timeout

That make sense. I've landed on calling openWaitForAttachment() initially then in the exception handler when it timesout calling open() in case it connects later. try: self.io_channel.openWaitForAttachment(2000) except PhidgetException as e: self._error(self.io_channel, e.code, e.description) self.i...
by jnbastoky
Sat Sep 18, 2021 1:26 pm
Forum: Python
Topic: Result data type in async callback
Replies: 0
Views: 46223

Result data type in async callback

The details parameter in the AsyncHandler callback for Phidget22.Devices.VoltageOutput.setVoltage_async() and Phidget22.Devices.DigitalOutput.setState_async() is returned as Python type bytes instead of type string . Printing the value returned by the AysncHandler result value gives a byte string: b...