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)
ISocketSeverProtocolDecoder
decode
in interface ISocketSeverProtocolDecoder
bBuffer
- the new data receivedpublic void setListener(ISocketServerProtocolDecoderListener listener)
ISocketSeverProtocolDecoder
setListener
in interface ISocketSeverProtocolDecoder
listener
- the listener to receive the notification of new frames/packetsCopyright © 2018 universAAL Consortium. All rights reserved.