Code Examples from
and Internet Complete
The applications are in these zip files:
(The Visual Studio 2003 projects have no more than one class per file to avoid this VS 2003 error when attempting to edit the form: "The class NotTheFirstClass can be designed, but is not the first class in the file. Visual Studio requires that designers use the first class in the file. Move the class code so that it is the first class in the file and try loading the designer again.")
The TCP and UDP applications also include a VB.NET application for communicating with the modules. . If you don't have Visual Basic .NET, you can run the .exe application in the project's \bin directory if your system has the file dotnetfx.exe, available from Microsoft.
These are the applications:
UDP Send. Sends data using UDP. Plus a VB.NET application that receives data from the modules.
UDP Receive. Receives data using UDP. Plus a VB.NET application that sends data to the modules.
TCP Server. Sends and receives data using TCP. Plus a VB.NET TCP client application for communicating with the modules.
Real Time Web Page. Serves a Web page that displays real-time data.
Device Controller. Serves a Web page that displays buttons and LEDs. Users can click a button to change the state of an LED on the module and the Web page. (The TINI application is a servlet.)
Form Response. Serves a Web page containing a form that enables users to provide data for use by the module. (The TINI application is a servlet.)
Send E-mail. Sends an E-mail message.
Receive E-mail. Receives E-mail messages.
FTP Client Send. Sends a file to an FTP server.
FTP Client Receive. Requests a file from an FTP server. (Includes two TINI examples, using FTPClient and the FTP URL scheme.).
FTP Server. Enables clients to send files to the module and request files from the module. (Rabbit only; the TINI software includes an FTP server.)
Basic Authentication. Requires a user name and password before serving a Web page. (The TINI application is a servlet.)
A version of my DeviceController servlet for use on DSTINI390 as well as DSTINIm400 and TStik modules. From Kelly Smith.