web service on SBC3 - help needed!

General PhidgetSBC Discussion.
Posts: 18
Joined: Sun Nov 11, 2012 10:51 am

web service on SBC3 - help needed!

Postby mariusz7 » Mon Apr 24, 2017 4:11 pm

I need help!
I am trying to find how the web service works on SBC3 from documentation and I am running in circles, being linked back to where I started.
What is working:
I can use SSH terminal to login to linux console.
I can login to SBC from Chrome browser:
Looking at the:
I can see Phidget Interface Kit 8/8/8 - great!
looking at:
I see that Webservice is running and port is 5001 - great!
I am getting:
not cool.
Is it a RESTfull API? where is the documentation?
How I can get/set the IO point on interface kit?
Is it a web socket server?
What events are emitted? Where is the documentation?
Please help!

Fresh meat
Posts: 1
Joined: Thu Apr 27, 2017 9:08 pm

Re: web service on SBC3 - help needed!

Postby explode » Thu Apr 27, 2017 9:17 pm

No answers yet, so I will try.

The Webservice isn't officially documented, you are expected to interact with the dll - there are plenty of code examples to follow. The reason given is the the Webservice might change. I think this is a shame, because it's now very easy to interact with the webservice.

You can have a look at how nodePhidgets does it:

I have also done it myself in Go, using Wireshark to figure it out the details - it's not too hard. There is also this post here with some information:
https://www.phidgets.com/phorum/viewtop ... f=7&t=2734

Good luck :-)

Posts: 18
Joined: Sun Nov 11, 2012 10:51 am

Re: web service on SBC3 - help needed!

Postby mariusz7 » Fri Apr 28, 2017 8:25 am

thanks @explode
This explains why I could not find what I was looking for (non existing documentation for webservice)

You promised JavaScript support to be implemented in 2017.
from your post:
it looks that it will not happen, It is pointless to have NodeJS ver 0.10 in year 2017.
It would be better for Phidgets future to have language independent support via http, RESTfull APIs and websockets.
Now I am running a USB connected Phidgets Interface Kits to RaspberryPi thanks to:
I am still working on how to use my Phidgets SBC3 with RaspberryPI connected with Ethernet.
Any help/suggestions on that?

Return to “General”

Who is online

Users browsing this forum: No registered users and 1 guest