public class SerialPortHandler extends Object
Constructor and Description |
---|
SerialPortHandler(fr.liglab.adele.icasa.device.zigbee.driver.impl.ZigbeeDriverImpl zigbeeDriverImpl) |
Modifier and Type | Method and Description |
---|---|
DeviceInfo |
getDeviceInfo(String moduleAddress) |
List<DeviceInfo> |
getDeviceInfos() |
DeviceInfo |
parseData(List<Byte> sb)
Parse data from the list of byte read.
|
void |
startListening(String port,
int baud)
Start listening on the given serial port.
|
void |
stopListening() |
void |
write(ResponseType responseType,
String moduleAddress,
String newValue)
Write a response built from the given informations.
|
public SerialPortHandler(fr.liglab.adele.icasa.device.zigbee.driver.impl.ZigbeeDriverImpl zigbeeDriverImpl)
public List<DeviceInfo> getDeviceInfos()
public void startListening(String port, int baud) throws IOException
port
- IOException
public void stopListening()
public DeviceInfo parseData(List<Byte> sb) throws IOException
sb
- IOException
public void write(ResponseType responseType, String moduleAddress, String newValue)
responseType
- Type of frame to respond to.moduleAddress
- address of module to send response to.newValue
- the new value to send.IOException
public DeviceInfo getDeviceInfo(String moduleAddress)
Copyright © 2012-2013 ADELE Research Group. All Rights Reserved.