Class RfDevice<T>
Base class for Rf devices
Implement this class to be able to communicate with other Rf devices
Inheritance
System.Object
RfDevice<T>
Assembly: cs.temp.dll.dll
Syntax
public abstract class RfDevice<T> : RfDevice, RfTransmiter, RfReceiver where T : RfMessage
Type Parameters
Methods
OnReceive(T)
Callback function called on the message arival
Declaration
protected abstract void OnReceive(T message)
Parameters
Type |
Name |
Description |
T |
message |
|
OnReceive(RfMessage)
Declaration
public override void OnReceive(RfMessage msg)
Parameters
Overrides
Send(T, Action<T>, Action<T>)
Implement this to send a message dependent on
the message parameters
Declaration
protected abstract void Send(T message, Action<T> onAcknowledgeCallback = null, Action<T> onTimeoutCallback = null)
Parameters
Type |
Name |
Description |
T |
message |
|
Action<T> |
onAcknowledgeCallback |
|
Action<T> |
onTimeoutCallback |
|
Send(RfMessage, Action<RfMessage>, Action<RfMessage>)
Declaration
public override void Send(RfMessage msg, Action<RfMessage> onAcknowledgeCallback = null, Action<RfMessage> onTimeoutCallback = null)
Parameters
Overrides
Implements