UMagicLeapBLEComponent

Component that provides access to the BLE API functionality.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

MagicLeapBLE

Header

/Engine/Plugins/Lumin/MagicLeapBLE/Source/Public/MagicLeapBLEComponent.h

Include

#include "MagicLeapBLEComponent.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(ClassGroup=MagicLeap, BlueprintType, Blueprintable, EditInlineNew,
       Meta=(BlueprintSpawnableComponent))
class UMagicLeapBLEComponent : public UActorComponent

Remarks

Component that provides access to the BLE API functionality.

Functions

Name Description

Public function UFunction BlueprintCallable, Category

void

 

AdapterGetNameAsync()

Requests the name of the local Bluetooth adapter.

Public function UFunction BlueprintCallable, Category

void

 

AdapterGetStateAsync()

Requests the state of the local Bluetooth adpater.

Public function UFunction BlueprintCallable, Category

void

 

GattConnectAsync

(
    const FString& InAddress
)

Initiates a connection to a Bluetooth GATT capable device.

Public function UFunction BlueprintCallable, Category

void

 

GattDisconnectAsync()

Disconnects an established connection, or cancels a connection attempt.

Public function UFunction BlueprintCallable, Category

void

 

GattGetAvailableServicesAsync()

Gets a list of GATT services offered by the remote devices.

Public function UFunction BlueprintCallable, Category

void

 

GattReadCharacteristicAsync

(
    const FMagicLeapBluetoothGattCharac...
)

Reads the requested characteristic from the connected remote device.

Public function UFunction BlueprintCallable, Category

void

 

GattReadDescriptorAsync

(
    const FMagicLeapBluetoothGattDescri...
)

Reads the requested descriptor from the connected remote device.

Public function UFunction BlueprintCallable, Category

void

 

GattReadRemoteRSSIAsync()

Reads the RSSI for a connected remote device.

Public function UFunction BlueprintCallable, Category

void

 

GattRequestConnectionPriorityAsync

Requests a connection parameter update.

Public function UFunction BlueprintCallable, Category

void

 

GattRequestMTUAsync

(
    int32 MTU
)

Requests to change MTU size.

Public function UFunction BlueprintCallable, Category

void

 

GattSetCharacteristicNotificationAsync

(
    const FMagicLeapBluetoothGattCharac...,
    bool bEnable
)

Enables or disables notifications/indications for a given chracteristic.

Public function UFunction BlueprintCallable, Category

void

 

GattWriteCharacteristicAsync

(
    const FMagicLeapBluetoothGattCharac...
)

Writes a given characteristic and its value to the connected remote device.

Public function UFunction BlueprintCallable, Category

void

 

GattWriteDescriptorAsync

(
    const FMagicLeapBluetoothGattDescri...
)

Writes the value of a given descriptor to the connected device.

Public function UFunction BlueprintCallable, Category

void

 

RegisterForAdapterStateChangeNotifications()

Requests adapter state changes to be relayed to the calling app.

Public function UFunction BlueprintCallable, Category

void

 

StartScanAsync()

Starts Bluetooth LE scan. The results will be delivered through scanner callback.

Public function UFunction BlueprintCallable, Category

void

 

StopScan()

Stops Bluetooth LE scan in progress.

Overridden from UActorComponent

Name Description

Public function Virtual

void

 

BeginPlay()

Register's this components log delegate with the BLE plugin.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss