Show / Hide Table of Contents

    Class AndroidBluetoothServerAdvertisingCallback

    Android BLE server advertising callback. Receives events related to the starting and stopping of BLE advertising. Configures a BLE server that responds to client read requests.

    Inheritance
    System.Object
    AndroidBluetoothServerAdvertisingCallback
    Namespace: Sensus.Android.Probes.Context
    Assembly: SensusAndroid.dll
    Syntax
    public class AndroidBluetoothServerAdvertisingCallback : AdvertiseCallback

    Constructors

    AndroidBluetoothServerAdvertisingCallback(BluetoothGattService, BluetoothGattCharacteristic)

    Declaration
    public AndroidBluetoothServerAdvertisingCallback(BluetoothGattService service, BluetoothGattCharacteristic characteristic)
    Parameters
    Type Name Description
    Android.Bluetooth.BluetoothGattService service
    Android.Bluetooth.BluetoothGattCharacteristic characteristic

    Methods

    CloseServer()

    Declaration
    public void CloseServer()

    OnStartFailure(AdvertiseFailure)

    Declaration
    public override void OnStartFailure(AdvertiseFailure errorCode)
    Parameters
    Type Name Description
    Android.Bluetooth.LE.AdvertiseFailure errorCode

    OnStartSuccess(AdvertiseSettings)

    Called when advertising has successfully started. Sets up a BLE server to handle client requests.

    Declaration
    public override void OnStartSuccess(AdvertiseSettings settingsInEffect)
    Parameters
    Type Name Description
    Android.Bluetooth.LE.AdvertiseSettings settingsInEffect

    Settings in effect.

    Back to top Copyright © 2014-2018 University of Virginia
    Generated by DocFX