Package com.diozero.firmata
Class SocketFirmataAdapter
- java.lang.Object
-
- com.diozero.firmata.FirmataAdapter
-
- com.diozero.firmata.SocketFirmataAdapter
-
- All Implemented Interfaces:
FirmataProtocol,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.StringDataResponse
-
Nested 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
All Methods Instance Methods Concrete Methods 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 Detail
-
SocketFirmataAdapter
public SocketFirmataAdapter(FirmataEventListener eventListener, String hostname, int port) throws IOException
- Throws:
IOException
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classFirmataAdapter
-
-