
public class MotionDecoder extends Object implements ISocketSeverProtocolDecoder
| Constructor and Description |
|---|
MotionDecoder(MotionContactSensorPublisher mp) |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(byte[] bBuffer)
Function called when incoming data is received by a connection.
|
void |
setListener(ISocketServerProtocolDecoderListener listener)
Sets the listener which will be notified about the new incoming
frames/packets.
|
public MotionDecoder(MotionContactSensorPublisher mp)
public void decode(byte[] bBuffer)
ISocketSeverProtocolDecoderdecode in interface ISocketSeverProtocolDecoderbBuffer - the new data receivedpublic void setListener(ISocketServerProtocolDecoderListener listener)
ISocketSeverProtocolDecodersetListener in interface ISocketSeverProtocolDecoderlistener - the listener to receive the notification of new frames/packetsCopyright © 2018 universAAL Consortium. All rights reserved.