Class ThirdPartyBluetoothRecord
- Namespace
- Geotab.StoreForward
- Assembly
- Geotab.Checkmate.ObjectModel.dll
public class ThirdPartyBluetoothRecord : ThirdPartyDataRecord
- Inheritance
-
ThirdPartyBluetoothRecord
- Inherited Members
Constructors
ThirdPartyBluetoothRecord()
Initializes a new instance of the ThirdPartyBluetoothRecord class.
public ThirdPartyBluetoothRecord()
ThirdPartyBluetoothRecord(string, in DateTime, string, byte, float)
Initializes a new instance of the ThirdPartyBluetoothRecord class.
public ThirdPartyBluetoothRecord(string serialNo, in DateTime dateTime, string address, byte dataType, float data)
Parameters
serialNo
stringThe serial no.
dateTime
DateTimeThe DateTime.
address
stringThe address.
dataType
byteThe datatype.
data
floatThe data.
Properties
Address
Gets or sets the Address.
public string Address { get; set; }
Property Value
- string
The Address.
Data
Gets or sets the Data.
public float Data { get; set; }
Property Value
- float
The Data.
DataType
Gets or sets the DataType.
public byte DataType { get; set; }
Property Value
- byte
The DataType.
Methods
CreateBinaryData()
Converts the record into binary data to be inserted into the database.
public override byte[] CreateBinaryData()
Returns
- byte[]
The binary data array.
EncodeAddressBytes(byte[], int, string)
Encodes MAC address from string
public static void EncodeAddressBytes(byte[] data, int offset, string macAddress)
Parameters
Exceptions
- FormatException
throws FormatException if number of MAC address bytes is not 6
- ArgumentException
throws ArgumentException exception if any exception is encountered during encoding
EncodeFloatDataToFp24(byte[], int, float)
Returns FP24 float value bytes. https://docs.google.com/document/d/1-wBBjOgZfoX9_nZ-zDDVrSnjWdxhX49zlosHDOybkG0.
public static void EncodeFloatDataToFp24(byte[] data, int offset, float value)