接口 STALKSentence

所有超级接口:
Sentence

public interface STALKSentence extends Sentence

Raymarine/Autohelm SeaTalk sentence. See SeaTalk Technical Reference by Thomas Knauf for more information on the protocol.

Example:
$STALK,52,A1,00,00*36

作者:
Kimmo Tuukkanen
  • 方法详细资料

    • addParameter

      void addParameter(String param)
      Add given parameter in sentence. Sentence field count is increased by one field, notice that adding too many fields may result in invalid sentence.
      参数:
      param - Hex parameter to add
    • getCommand

      String getCommand()
      Returns the SeaTalk command / datagram type.
      返回:
      Command String, "00", "01", "02" etc.
    • setCommand

      void setCommand(String cmd)
      Sets the SeaTalk command / datagram type.
      参数:
      cmd - Command String, "00", "01", "02" etc.
    • getParameters

      String[] getParameters()
      Returns the datagram payload.
      返回:
      Parameters array containing hex values.
    • setParameters

      void setParameters(String... params)
      Sets the datagram payload.
      参数:
      params - Parameters array containing hex Strings.