Clearone Writing StreamNet User Manual Page 34

  • Download
  • Add to my manuals
  • Print
  • Page
    / 72
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 33
Writing StreamNet Device Drivers
9-4
All specifications subject to change without notification. All rights reserved. Copyright © 2007 NetStreams
Main +1 512.977-9393 / fax +1 512.977.9398 / Toll Free Technical Support +1 866-353-3496
3600 W. Parmer Lane, Suite 100; Austin, TX 78727 / www.netstreams.com.
aString = aSubNode:getStatus(strField, value)
Fetch the most recently assigned value of a status report field. If the report field is
currently undefined, nil will be returned.
aSubNode:default_handle_command(command)
default_handle_command is the last effort command handler and is used only if there
is no handle_command function defined to specifically handle a given command.
Strictly speaking, this function need never be defined or used since any command will
first be handled by the type specific handler.
The single argument is an AsciiCommand table as documented in Chapter 2, Handling
Commands on page 3-1. The driver can define a handle_command method to handle
the incoming ASCII command “#command …”command method to handle the
incoming ASCII command “#command …”
The single argument is an AsciiCommand table as documented in Chapter 2, Handling
Commands on page 3-1.
aSubNode:handle_command(command)
The driver can define a handle_command method to handle the incoming ASCII
command “#command …”
The single argument is an AsciiCommand table as documented in Chapter 2, Handling
Commands on page 3-1.
AsciiCommand
An AsciiCommand object contains the information and parameters contained in an
incoming ASCII command.
aString = command.command
The lower-cased string version of the command itself. For example, in the case of
“#SET FAN,OFF” command.command would contain “set”.
aTable = command.params
A 1-based vector of the parameters specified to the command; e.g., in the case of
“#SET FAN,OFF”, command.params would contain:
command.params = {
[1] = “FAN”,
[2] = “OFF”
}
Page view 33
1 2 ... 29 30 31 32 33 34 35 36 37 38 39 ... 71 72

Comments to this Manuals

No comments