Notice: This page contains information for the legacy Phidget21 Library. Phidget21 is out of support. Bugfixes may be considered on a case by case basis. Phidget21 does not support VINT Phidgets, or new USB Phidgets released after 2020. We maintain a selection of legacy devices for sale that are supported in Phidget21. We recommend that new projects be developed against the Phidget22 Library.
|
Phidget WebService: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
==General Overview== | ==General Overview== | ||
The Phidget Web Service is a background process that broadcasts all events and data from a USB Phidget over the network: | |||
[[Image:webservice_general_broadcast.png|700px|link=|alt=]] | |||
It uses '''local link addressing''' which allows you to use simple server names in your code. The local link addressing is provided by the programs Bonjour, avahi, or mDNSResponder, depending on your system, and the correct program is either installed already or with the Phidget libraries. | |||
You can listen to the Phidget data and control the Phidgets over the network using one or more computers: | |||
[[Image:webservice_general_pctopc.png|700px|link=|alt=]] | |||
==Using The Webservice== | ==Using The Webservice== | ||
Line 20: | Line 24: | ||
* [[OS - Windows CE#Webservice|Windows CE]] | * [[OS - Windows CE#Webservice|Windows CE]] | ||
The operating systems pages have complete examples on how to set up a running webservice host process and remote program on that operating system. The pages also tell you how to start and stop the Webservice on your computer, and how to run it with or without mDNS (Bonjour, avahi, etc). | |||
The operating systems pages have complete examples on how to set up a running webservice host process and remote program on that operating system. | |||
We also have a couple of code snippets in C and Java on the [[General Phidget Programming#Using Phidgets over a Network|General Phidget Programming page]] to show examples of opening a Phidget remotely. | We also have a couple of code snippets in C and Java on the [[General Phidget Programming#Using Phidgets over a Network|General Phidget Programming page]] to show examples of opening a Phidget remotely. |
Revision as of 19:46, 27 March 2012
General Overview
The Phidget Web Service is a background process that broadcasts all events and data from a USB Phidget over the network:
It uses local link addressing which allows you to use simple server names in your code. The local link addressing is provided by the programs Bonjour, avahi, or mDNSResponder, depending on your system, and the correct program is either installed already or with the Phidget libraries.
You can listen to the Phidget data and control the Phidgets over the network using one or more computers:
Using The Webservice
Each Operating System page has a section on how to use the webservice on that operating system:
The operating systems pages have complete examples on how to set up a running webservice host process and remote program on that operating system. The pages also tell you how to start and stop the Webservice on your computer, and how to run it with or without mDNS (Bonjour, avahi, etc).
We also have a couple of code snippets in C and Java on the General Phidget Programming page to show examples of opening a Phidget remotely.