CPhidget_openRemote broken...

Supporting 10.7 and up
dkatz42
Phidgetly
Posts: 30
Joined: Mon Feb 07, 2011 1:14 am
Contact:

CPhidget_openRemote broken...

Postby dkatz42 » Thu Mar 10, 2011 9:47 pm

Looks like maybe you broke CPhidget_openRemote() for the wild card serial number (-1). This worked in the 12/22 release, but not in the 3/1 (or the 3/10.)

The effects are obvious if you double-click on a remote phidget in the "Bonjour" window under System Preferences--it launches a phidget-specific app that doesn't actually find the module. This doesn't seem to be module-specific; the same effect is seen for both LED controllers and the 8/8/8 part of SBCs.

I verified this behavior with my own app--an openRemote on -1 never gets an attach callback...

--Dave

User avatar
Patrick
Lead Developer
Posts: 3078
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: CPhidget_openRemote broken...

Postby Patrick » Fri Mar 11, 2011 2:08 pm

There was a bump in the webservice protocol version, so you need to update both client and server sides to the same version.

-Patrick

dkatz42
Phidgetly
Posts: 30
Joined: Mon Feb 07, 2011 1:14 am
Contact:

Re: CPhidget_openRemote broken...

Postby dkatz42 » Fri Mar 11, 2011 5:05 pm

That was it, thanks.

Seems like there might be a more rigorous way to detect protocol version mismatches (like failing one of the open calls) as this fails the Principle of Least Astonishment...

--Dave

User avatar
Patrick
Lead Developer
Posts: 3078
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: CPhidget_openRemote broken...

Postby Patrick » Mon Mar 14, 2011 9:02 am

There is - this throws a version mismatch error exception, it's just that the Mac examples don't notify the user on this exception (it's on the list of things to add).

-Patrick

dkatz42
Phidgetly
Posts: 30
Joined: Mon Feb 07, 2011 1:14 am
Contact:

Re: CPhidget_openRemote broken...

Postby dkatz42 » Mon Mar 14, 2011 11:07 am

Something about a tree falling in the forest... ;-)

Thanks,

--Dave


Return to “macOS”

Who is online

Users browsing this forum: No registered users and 1 guest