Table of Contents

Class ThirdPartyBluetoothRecord

Namespace
Geotab.StoreForward
Assembly
Geotab.Checkmate.ObjectModel.dll

false A data record class to add third party bluetooth record.

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 string

The serial no.

dateTime DateTime

The DateTime.

address string

The address.

dataType byte

The datatype.

data float

The 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

data byte[]

source byte array

offset int

byte array offset

macAddress string

MAC string

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)

public static void EncodeFloatDataToFp24(byte[] data, int offset, float value)

Parameters

data byte[]

byte array to place encoded float (3)bytes

offset int

offset in the byte array to place encoded float (3)bytes

value float

float value to encode