|
||||||||||||||||||||||
Describing query #1 in XMLThe very short and simple XML code that describes query #1 is shown in Listing 1. Notes:
Displaying query #1 replies in the web pageThe user interface for the live demo displays the received RTOS tick count in standard a HTML <span> tag. The <span> tag is assigned the id tick_count_span. The id is used to reference the contents of the <span> from Javascript code.
Sending query #1 to the remote networked deviceThe Javascript helper function queryDevice() is provided to handle the AJAX calls.
Listing 4 is a worked example.
Live demo query #2: Get Network StatisticIn the live demo query ID #2 is used to obtain one of three different network statistics.
Describing query #2 in XMLThe very short and simple XML code that describes query #2 is shown in Listing 5. The bullet point notes above listing 1 are also relevant to listing 5. The main difference between the two listings is the inclusion of a query parameter in listing #5.From listing 5 it can be seen that:
Displaying query #2 replies in the web pageThe user interface for the live demo displays the received network statistic as text on a standard HTML input button. The button is assigned the id netstat_update. The id is used to reference the button from Javascript code.
Listing 7 is a worked example.
|
[ Back to the top ]
[ About FreeRTOS ]
[ Privacy ]
[ FreeRTOS+ Sitemap ]
[ Main FreeRTOS Sitemap ]
[
]
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|