RVS_BTDriver_Vendor_GoTenna_Mesh

class RVS_BTDriver_Vendor_GoTenna_Mesh : RVS_BTDriver_Vendor_GoTenna

A factory class for goTenna Mesh devices

Enums for Proprietary goTenna BLE Service and Characteristic UUIDs

  • These are String-based enums that we use to reference various services and characteristics in our driver.

    See more

    Declaration

    Swift

    internal enum RVS_BLE_GATT_UUID : String
  • 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).