Command String Requirements
The following are requirements for a valid command string:
-
Command strings must be terminated by a period.
-
Command type names must be separated from their arguments by a space.
-
Command type names (
welcome
,contacts
, andsettings
) are case insensitive. -
Arguments for
Contacts
orSettings
command types are1
or2
. See Table 4-1. -
Optional second argument of
1
or2
can be used for theSettings
command type. See Table 4-1.
Table 4-1 Valid Command String Type and Argument Combinations
Command Types | Command Arguments | Optional Arguments |
---|---|---|
|
none |
none |
|
|
none |
|
|
|
To demonstrate the applet's command string functionality, the following examples are provided as string versions of the byte sequences of valid command strings:
Note:
Valid command type names used in command strings are case insensitive.
-
Welcome.
-
Settings 1.
-
contacts 2.
-
Settings 2 2.