Legrand / Raritan / Server Technology Xerus™ JSON-RPC API
Loading...
Searching...
No Matches
Bluetooth.idl
1/* SPDX-License-Identifier: BSD-3-Clause */
2/*
3 * Copyright 2025 Raritan Inc. All rights reserved.
4 */
5
6#include <UserEvent.idl>
7
8/**
9 * Device Settings
10 */
12
13 /** %Bluetooth settings */
14 interface Bluetooth {
15
16 /** %Bluetooth antenna selection */
17 enumeration Antenna {
18 Internal, ///< Internal antenna
19 External ///< External antenna
20 };
21
22 /** %Bluetooth settings */
23 structure Settings {
24 boolean enabled; ///< Enable %Bluetooth radio
25 Antenna antenna; ///< Antenna selection
26 };
27
28 /** Event: %Bluetooth settings have been changed */
29 valueobject SettingsChangedEvent extends event.UserEvent {
30 Settings oldSettings; ///< Settings before change
31 Settings newSettings; ///< Settings after change
32 };
33
34 /**
35 * Retrieve the %Bluetooth settings.
36 *
37 * @return %Bluetooth settings
38 */
40
41 /**
42 * Change the %Bluetooth settings.
43 *
44 * @param settings New settings
45 *
46 * @return 0 if OK
47 */
48 int setSettings(in Settings settings);
49
50 };
51
52}
Bluetooth settings
Definition Bluetooth.idl:14
Antenna
Bluetooth antenna selection
Definition Bluetooth.idl:17
@ External
External antenna.
Definition Bluetooth.idl:19
@ Internal
Internal antenna.
Definition Bluetooth.idl:18
Settings getSettings()
Retrieve the Bluetooth settings.
int setSettings(in Settings settings)
Change the Bluetooth settings.
Device Settings.
Definition Bluetooth.idl:11
Event: Bluetooth settings have been changed.
Definition Bluetooth.idl:29
Settings newSettings
Settings after change.
Definition Bluetooth.idl:31
Settings oldSettings
Settings before change.
Definition Bluetooth.idl:30
boolean enabled
Enable Bluetooth radio.
Definition Bluetooth.idl:24
Antenna antenna
Antenna selection.
Definition Bluetooth.idl:25