1 // --------------------------------------------------------------
3 // --------------------------------------------------------------
4 // General form of a request
8 "transactionid": request_transaction_id
13 // Response for successful operation
17 "transactionid": request_transaction_id
20 <setting specific results>
24 // Response for failed operation
28 "transactionid": request_transaction_id,
30 "reason": "<some error message>"
33 // --------------------------------------------------------------
35 // --------------------------------------------------------------
36 // Check if bluetooth subsystem is enabled/powered.
40 "transactionid": "<some UUID>",
45 // Enable bluetooth subsystem
49 "transactionid": "<some UUID>",
54 // Disable bluetooth subsystem
58 "transactionid": "<some UUID>",
63 // Successful is_enabled
67 "transactionid": "<some UUID>",
68 "result": true or false
71 // Successful enable/disable
75 "transactionid": "<some UUID>",
79 // --------------------------------------------------------------
81 // --------------------------------------------------------------
82 // Check if WiFi subsystem is enabled/powered.
86 "transactionid": "<some UUID>",
91 // Enable WiFi subsystem
95 "transactionid": "<some UUID>",
100 // Disable WiFi subsystem
104 "transactionid": "<some UUID>",
109 // Scan WiFi subsystem
113 "transactionid": "<some UUID>",
118 // Connect to WiFi access point
122 "transactionid": "<some UUID>",
124 "value": "<Connman service object path>"
127 // Disconnect from WiFi access point
131 "transactionid": "<some UUID>",
132 "name": "disconnect",
133 "value": "<Connman service object path>"
136 // Successful is_enabled
140 "transactionid": "<some UUID>",
141 "result": true or false
144 // Successful enable/disable/connect/disconnect
148 "transactionid": "<some UUID>",
149 "result": "succeeded"
156 "transactionid": "3b5c9ebe-23fa-6b58-3f50-1203d7641441",
157 "result": "succeeded",
161 "/net/connman/service/ethernet_0010f32f5a70_cable",
167 "Domains.Configuration": [],
169 "Address": "10:20:F3:2F:5E:23",
176 "Address": "192.168.1.20",
177 "Gateway": "192.168.1.1",
179 "Netmask": "255.255.255.0"
181 "IPv4.Configuration": {
185 "IPv6.Configuration": {
187 "Privacy": "disabled"
195 "Nameservers.Configuration": [],
200 "Proxy.Configuration": {},
207 "Timeservers.Configuration": [],
212 "/net/connman/service/wifi_c8f733acdf96_3558364737_managed_psk",
214 "AutoConnect": false,
215 "BSSID": "42:18:23:98:93:f9",
217 "Domains.Configuration": [],
218 "EncryptionMode": "aes",
220 "Address": "D8:A7:47:AC:66:10",
221 "Interface": "wlp1s0",
228 "IPv4.Configuration": {
232 "IPv6.Configuration": {
234 "Privacy": "disabled"
240 "Nameservers.Configuration": [],
243 "Proxy.Configuration": {},
251 "Timeservers.Configuration": [],
259 // --------------------------------------------------------------
261 // --------------------------------------------------------------
266 "transactionid": "<some UUID>",
268 "value": <time in seconds from Epoch>
275 "transactionid": "<some UUID>",
277 "value": "<timezone typically found in tzdata>"
280 // Set time/timezone updates
281 // NOTE: The "time" request will fail with a permission denied error
282 // if the value is set to "auto".
286 "transactionid": "<some UUID>",
287 "name": "time_updates" or "timezone_updates"
288 "value": "manual" or "auto"
291 // Check if time/timezone updates are set to automatic
295 "transactionid": "<some UUID>",
296 "name": "is_time_updates_auto" or "is_timezone_updates_auto"
300 // Successful time/time_updates/timezone/timezone_updates
304 "transactionid": "<some UUID>",
305 "result": "succeeded"
308 // Successful is_{time,timezone}_update_auto
312 "transactionid": "<some UUID>",
313 "result": "succeeded"
314 "value": true or false