Class FirmataCommand
java.lang.Object
org.apache.plc4x.java.firmata.readwrite.FirmataCommand
- All Implemented Interfaces:
Message,Serializable
- Direct Known Subclasses:
FirmataCommandProtocolVersion,FirmataCommandSetDigitalPinValue,FirmataCommandSetPinMode,FirmataCommandSysex,FirmataCommandSystemReset
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract ByteintintinthashCode()voidserialize(WriteBuffer writeBuffer) protected abstract voidserializeFirmataCommandChild(WriteBuffer writeBuffer) static FirmataCommandstaticParse(ReadBuffer readBuffer, Boolean response) static FirmataCommandstaticParse(ReadBuffer readBuffer, Object... args) toString()
-
Field Details
-
response
-
-
Constructor Details
-
FirmataCommand
-
-
Method Details
-
getCommandCode
-
serializeFirmataCommandChild
protected abstract void serializeFirmataCommandChild(WriteBuffer writeBuffer) throws SerializationException - Throws:
SerializationException
-
serialize
- Specified by:
serializein interfaceSerializable- Throws:
SerializationException
-
getLengthInBytes
public int getLengthInBytes()- Specified by:
getLengthInBytesin interfaceMessage
-
getLengthInBits
public int getLengthInBits()- Specified by:
getLengthInBitsin interfaceMessage
-
staticParse
public static FirmataCommand staticParse(ReadBuffer readBuffer, Object... args) throws ParseException - Throws:
ParseException
-
staticParse
public static FirmataCommand staticParse(ReadBuffer readBuffer, Boolean response) throws ParseException - Throws:
ParseException
-
equals
-
hashCode
public int hashCode() -
toString
-