Class RfDevice
Inheritance
System.Object
RfDevice
Assembly: cs.temp.dll.dll
Syntax
public abstract class RfDevice : MonoBehaviour, RfTransmiter, RfReceiver
Fields
Logger
Declaration
protected GameObjectLogger Logger
Field Value
Type |
Description |
GameObjectLogger |
|
Range
Transmitting range, in meters (m).
Declaration
Field Value
Type |
Description |
System.Single |
|
Properties
DeviceId
Declaration
public abstract int DeviceId { get; }
Property Value
Type |
Description |
System.Int32 |
|
Location
World position of the Rf device
Declaration
public Vector3 Location { get; }
Property Value
Protocol
Declaration
public abstract string Protocol { get; }
Property Value
Type |
Description |
System.String |
|
Methods
GetDeviceById<T>(UInt32)
Returns RfDevice object based on id.
Declaration
public T GetDeviceById<T>(uint id)
where T : RfDevice
Parameters
Type |
Name |
Description |
System.UInt32 |
id |
|
Returns
Type Parameters
GetTransmiterParams()
Declaration
public abstract RfTransmitterParams GetTransmiterParams()
Returns
Log<W>(String, W)
Declaration
protected void Log<W>(string topic, W data)
Parameters
Type |
Name |
Description |
System.String |
topic |
|
W |
data |
|
Type Parameters
OnReceive(RfMessage)
Declaration
public abstract void OnReceive(RfMessage message)
Parameters
Send(RfMessage, Action<RfMessage>, Action<RfMessage>)
Declaration
public abstract void Send(RfMessage message, Action<RfMessage> onAcknowledgeCallback = null, Action<RfMessage> onTimeoutCallback = null)
Parameters
Implements