Digi 9P 9360/9750 manual Using C++, Included example applications, Display

Models: 9P 9360/9750

1 75
Download 75 pages 46.92 Kb
Page 32
Image 32

W r i t i n g a p p l i c a t i o n s

Using C++

Asample C++ application “hello_world” is included in “apps/misc/src/hello_world”. You can use this sample application as a template to develop your own C++ applications.

Just use add_app as above and adapt the Makefile.in according to hello_world_cpp/ Makefile.in

Included example applications

There are several applications included in the project template with full source code:

display

This is a simple application that demonstrates the usage of the Common Gateway Interface (CGI) to communicate data between the embedded web server (BOA) and a target’s application.

Open a web browser in your development PC and type the IP address of the target in the address box to access the embedded web page of the target.

You may enter any filename on the text box and click the Display button. The filename will be given to the application which will send the contents of the file to your browser:

3 2

L x N E T E S U s e r ’ s G u i d e

Page 32
Image 32
Digi 9P 9360/9750 manual Using C++, Included example applications, Display