Package com.diozero.firmata
Class SocketFirmataAdapter
java.lang.Object
com.diozero.firmata.FirmataAdapter
com.diozero.firmata.SocketFirmataAdapter
- All Implemented Interfaces:
FirmataProtocol,Closeable,AutoCloseable,Runnable
public class SocketFirmataAdapter extends FirmataAdapter
-
Nested Class Summary
Nested classes/interfaces inherited from class com.diozero.firmata.FirmataAdapter
FirmataAdapter.FirmwareDetails, FirmataAdapter.I2CResponse, FirmataAdapter.StringDataResponseNested classes/interfaces inherited from interface com.diozero.firmata.FirmataProtocol
FirmataProtocol.PinCapability, FirmataProtocol.PinMode -
Field Summary
Fields inherited from interface com.diozero.firmata.FirmataProtocol
ANALOG_IO_END, ANALOG_IO_START, ANALOG_MAPPING_QUERY, ANALOG_MAPPING_RESPONSE, CAPABILITY_QUERY, CAPABILITY_RESPONSE, DIGITAL_IO_END, DIGITAL_IO_START, END_SYSEX, EXTENDED_ANALOG, EXTENDED_ID, I2C_CONFIG, I2C_REPLY, I2C_REQUEST, PIN_STATE_QUERY, PIN_STATE_RESPONSE, PROTOCOL_VERSION, REPORT_ANALOG_PIN, REPORT_DIGITAL_PORT, REPORT_FIRMWARE, SAMPLING_INTERVAL, SET_DIGITAL_PIN_VALUE, SET_PIN_MODE, START_SYSEX, STRING_DATA, SYSEX_NON_REALTIME, SYSEX_REALTIME, SYSTEM_RESET -
Constructor Summary
Constructors Constructor Description SocketFirmataAdapter(FirmataEventListener eventListener, String hostname, int port) -
Method Summary
Modifier and Type Method Description voidclose()Methods inherited from class com.diozero.firmata.FirmataAdapter
enableDigitalReporting, getBoardCapabilities, getDigitalValue, getFirmware, getMax, getPinMode, getPinState, getProtocolVersion, getValue, i2cRead, i2cReadData, i2cWrite, i2cWriteData, initialiseBoard, run, setDigitalValue, setDigitalValues, setPinMode, setSamplingInterval, setValue, start
-
Constructor Details
-
SocketFirmataAdapter
public SocketFirmataAdapter(FirmataEventListener eventListener, String hostname, int port) throws IOException- Throws:
IOException
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFirmataAdapter
-