bool SetBLEAdvertisingSettings (int, int, string)

Set the interval and mode for BLE advertising.

Security

Trust Level Required: Full Trust

Parameters

Name Description
interval int
The advertising interval in milliseconds in units of .625ms. Min value: 100, Max value: 10240
mode int
The advertising mode, Min:1, Max: 8. Passing in 6 to 8 (reserved for future use) will result in a the default value of 1
devName (Optional) string
The name of the device. If not supplied, the first matching configured device of this type will be used

Return

True in the event that the given values were set succesfully. False otherwise.

Remarks

Examples

				
function setLEDStateOperation() {
	var startUp = document.getElementById('startUp').checked ? 0 : 1;
	var error = document.getElementById('error').checked ? 1 : 0;
	var connection = document.getElementById('connection').checked ? 1 : 0;
	updateResults('Success: ' + KioOmronEnviroSensor.SetLEDStateOperation(startUp, error, connection));
}

	

Requirements

KioWare for Windows version 8.16 or greater.