Example 2

Example 2

This example demonstrates a WML menu structure that uses fixed text, plus two SGD commands to display the current printer settings for the Baud rate and ESSID settings on the printer.
1 →
2 →
3 →
4 →
5 →
6 →
7 →
8 →
9 →
<wml>
<display>
<card>
<p>Baud: $(comm.baud)</p>
<br/>
<p>AP: $(wlan.essid)</p>
</card>
</display>
</wml>
1
Beginning of the WML file.
2
Beginning of the content to be displayed.
3
The
<card>
tag begins the definition of this menu.
4
The
<p>
begins a paragraph.‘Baud:’ displays the text Baud:$(comm.baud) retrieves and displays the printers’ current baud rate. The
</p>
ends the paragraph.
5
A line break
6
The
<p>
begins a paragraph.“AP:” displays the text AP:$(wlan.essid) retrieves and displays the printers’ current ESSID setting. The
</p>
ends the paragraph.
7
The
</card>
tag ends the definition of this menu.
8
End of the content to be displayed.
9
End of the WML file
In use, this WML menu looks similar to this: