public class ArdulinkProtocol2 extends java.lang.Object implements Protocol
v2.1.1 Gordio - SERVICE PACK 1
project Ardulink http://www.ardulink.org/Constructor and Description |
---|
ArdulinkProtocol2() |
Modifier and Type | Method and Description |
---|---|
FromDeviceMessage |
fromDevice(byte[] bytes) |
java.lang.String |
getName() |
byte[] |
getSeparator() |
static Protocol |
instance() |
byte[] |
toDevice(ToDeviceMessageCustom custom) |
byte[] |
toDevice(ToDeviceMessageKeyPress keyPress) |
byte[] |
toDevice(ToDeviceMessageNoTone noTone) |
byte[] |
toDevice(ToDeviceMessagePinStateChange pinStateChange) |
byte[] |
toDevice(ToDeviceMessageStartListening startListening) |
byte[] |
toDevice(ToDeviceMessageStopListening stopListening) |
byte[] |
toDevice(ToDeviceMessageTone tone) |
public static Protocol instance()
public byte[] getSeparator()
getSeparator
in interface Protocol
public byte[] toDevice(ToDeviceMessageStartListening startListening)
public byte[] toDevice(ToDeviceMessageStopListening stopListening)
public byte[] toDevice(ToDeviceMessagePinStateChange pinStateChange)
public byte[] toDevice(ToDeviceMessageKeyPress keyPress)
public byte[] toDevice(ToDeviceMessageTone tone)
public byte[] toDevice(ToDeviceMessageNoTone noTone)
public byte[] toDevice(ToDeviceMessageCustom custom)
public FromDeviceMessage fromDevice(byte[] bytes)
fromDevice
in interface Protocol
Copyright © 2019. All rights reserved.