RVS_BTDriver_Vendor_OBD_ELM327_VLINK
class RVS_BTDriver_Vendor_OBD_ELM327_VLINK : RVS_BTDriver_Vendor_OBD_ELM327
A factory class for OBD dongles, based on the VLINK version of the ELM327 chipset.
-
These are String-based enums that we use to reference various services and characteristics in our driver.
See moreDeclaration
Swift
fileprivate enum RVS_BLE_GATT_UUID : String
-
This is the data we need to match against the advertisement data.
Declaration
Swift
private let _manufacturerCode: [UInt8]
-
This returns a list of BLE CBUUIDs, which the vendor wants us to filter for.
Declaration
Swift
override var searchForTheseServices: [CBUUID] { get }
-
REQUIRED: Factory method for creating an instance of the vendor device.
Declaration
Swift
internal override func makeDevice(_ inDeviceRecord: Any?) -> RVS_BTDriver_Device!
Parameters
inDeviceRecord
The peripheral and central manager instances for this device.
Return Value
a device instance. Can be nil, if this vendor can’t instantiate the device.
-
This is a test, to see if this vendor is the appropriate one to handle a given device.
Declaration
Swift
internal override func iOwnThisDevice(_ inDevice: RVS_BTDriver_Device_BLE) -> Bool
Parameters
inDevice
The device we’re testing for ownership. It will have its device type set, if it is one of ours.
Return Value
true, if this vendor “owns” this device (is the vendor that should handle it).
-
This returns an easy-to-display description string
Declaration
Swift
public override var description: String { get }