| cmdVM_MSG | Index |
Command Code:
The Packet:
| 0 | 1 | 2 | 3 | 4 | ||||
| address | 3 | cmdVM_MSG | ID | DATA |
| ID - | The ID of the TEA process that is sending the message. |
| DATA - | A single byte of ASCII text. |
Description:
| Note: | This command can only be received from a module. It can not be sent to a module. |
This command is used by TEA processes running on BrainStem Modules to send ASCII characters back to the host.
Since a BrainStem module can run concurrent processes, Several processes may be attempting to send formatted text to the host at the same time. A host application can use the ID byte to keep track of which process is sending data. This prevents the host from mixing up the data.
This command is used exclusively by TEA program print routines. As an example, the following code fragment:
will send the following raw bytes (listed below as hex values) to the host: