XDK Live
connectivity named-singleton BLE {
generator "org.eclipse.mita.platform.xdk110.connectivity.BleGenerator"
validator "org.eclipse.mita.platform.xdk110.connectivity.BleValidator"
/**
* The name of the device as advertised via GAP.
*/
configuration-item deviceName : string
/**
* MAC Address to be configured. Format: "FC:D6:BD:xx:xx:xx" or "FC-D6-BD-xx-xx-xx".
*/
configuration-item macAddress : string
/**
* The last four bytes of the UUID of the GATT service we'll create.
*/
configuration-item serviceUID : uint32
/**
* The advertising interval in milliseconds.
*/
configuration-item advertisingInterval : int16 = 1000
/**
* Creates a boolean GATT characteristic.
*
* @param UUID The last four bytes of the characteristic UUID. Defaults to the hash code of the VCI name.
*/
signal bool_characteristic(UUID : uint32) : bool
/**
* Creates an unsigned integer GATT characteristic.
*
* @param UUID The last four bytes of the characteristic UUID. Defaults to the hash code of the VCI name.
*/
signal uint32_characteristic(UUID : uint32) : uint32
/**
* Creates a signed integer GATT characteristic.
*
* @param UUID The last four bytes of the characteristic UUID. Defaults to the hash code of the VCI name.
*/
signal int32_characteristic(UUID : uint32) : int32
}Setting up BLE Resource
Setting up variable topic-signals
Writing on a Characteristic
Last updated