bleObserverStart(Function) |
Top Previous Next |
This function makes the Bluetooth interface start listening for advertising data. This can both be used to receive advertising data from known devices and to detect new devices.
Input: scan_interval: UINT (4..16384) (default 16384) The time interval from from one scan is started until the next is started. The time is provided in ticks of 0.625 ms. This gives a range from 2.5ms to 10.24 s.
scan_window: UINT (4..16384) (default 16384) The duration to scan for. Must be less than or equal to the scan interval. The time is provided in ticks of 0.625 ms. This gives a range from 2.5ms to 10.24 s.
scan_type: USINT (0..1) (default 0) The kind of scan to perform:
filter_policy: INT (default 0) The policy to use to filter incoming packets:
Returns: INT
Declaration: FUNCTION bleObserverStart : INT;
Example: ... |