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 // General form of an event
37 "value": <setting specific value>
40 // --------------------------------------------------------------
42 // --------------------------------------------------------------
43 // Check if bluetooth subsystem is enabled/powered.
47 "transactionid": "<some UUID>",
52 // Enable bluetooth subsystem
56 "transactionid": "<some UUID>",
61 // Disable bluetooth subsystem
65 "transactionid": "<some UUID>",
70 // Successful is_enabled
74 "transactionid": "<some UUID>",
75 "result": true or false
78 // Successful enable/disable
82 "transactionid": "<some UUID>",
86 // --------------------------------------------------------------
88 // --------------------------------------------------------------
89 // Check if WiFi subsystem is enabled/powered.
93 "transactionid": "<some UUID>",
98 // Enable WiFi subsystem
102 "transactionid": "<some UUID>",
107 // Disable WiFi subsystem
111 "transactionid": "<some UUID>",
116 // Scan WiFi subsystem
120 "transactionid": "<some UUID>",
125 // Connect to WiFi access point
129 "transactionid": "<some UUID>",
131 "value": "<Connman service object path>"
134 // Disconnect from WiFi access point
138 "transactionid": "<some UUID>",
139 "name": "disconnect",
140 "value": "<Connman service object path>"
143 // Successful is_enabled
147 "transactionid": "<some UUID>",
148 "result": true or false
151 // Successful enable/disable/connect/disconnect
155 "transactionid": "<some UUID>",
156 "result": "succeeded"
163 "transactionid": "3b5c9ebe-23fa-6b58-3f50-1203d7641441",
164 "result": "succeeded",
168 "/net/connman/service/ethernet_0010f32f5a70_cable",
174 "Domains.Configuration": [],
176 "Address": "10:20:F3:2F:5E:23",
183 "Address": "192.168.1.20",
184 "Gateway": "192.168.1.1",
186 "Netmask": "255.255.255.0"
188 "IPv4.Configuration": {
192 "IPv6.Configuration": {
194 "Privacy": "disabled"
202 "Nameservers.Configuration": [],
207 "Proxy.Configuration": {},
214 "Timeservers.Configuration": [],
219 "/net/connman/service/wifi_c8f733acdf96_3558364737_managed_psk",
221 "AutoConnect": false,
222 "BSSID": "42:18:23:98:93:f9",
224 "Domains.Configuration": [],
225 "EncryptionMode": "aes",
227 "Address": "D8:A7:47:AC:66:10",
228 "Interface": "wlp1s0",
235 "IPv4.Configuration": {
239 "IPv6.Configuration": {
241 "Privacy": "disabled"
247 "Nameservers.Configuration": [],
250 "Proxy.Configuration": {},
258 "Timeservers.Configuration": [],
266 // WiFi "PropertyChanged" event format
271 "object_path":"/net/connman/technology/wifi",
272 "interface_name":"net.connman.Technology",
273 "signal_name":"PropertyChanged",
281 // --------------------------------------------------------------
283 // --------------------------------------------------------------
288 "transactionid": "<some UUID>",
290 "value": <time in seconds from Epoch>
297 "transactionid": "<some UUID>",
299 "value": "<timezone typically found in tzdata>"
302 // Set time/timezone updates
303 // NOTE: The "time" request will fail with a permission denied error
304 // if the value is set to "auto".
308 "transactionid": "<some UUID>",
309 "name": "time_updates" or "timezone_updates"
310 "value": "manual" or "auto"
313 // Check if time/timezone updates are set to automatic
317 "transactionid": "<some UUID>",
318 "name": "is_time_updates_auto" or "is_timezone_updates_auto"
322 // Successful time/time_updates/timezone/timezone_updates
326 "transactionid": "<some UUID>",
327 "result": "succeeded"
330 // Successful is_{time,timezone}_update_auto
334 "transactionid": "<some UUID>",
335 "result": "succeeded"
336 "value": true or false
340 // --------------------------------------------------------------
342 // --------------------------------------------------------------
344 // "ServicesChanged" event from Connman Manager object
349 "interface_name": "net.connman.Manager",
351 "signal_name": "ServicesChanged",
356 "/net/connman/service/ethernet_002564e81cc7_cable",
360 "/net/connman/service/wifi_50465dae486e_4775657374_managed_none",
362 "AutoConnect": false,
364 "Domains.Configuration": [],
366 "Address": "00:21:5D:4E:48:7D",
367 "Interface": "wlan0",
373 "IPv4.Configuration": {
377 "IPv6.Configuration": {
379 "Privacy": "prefered"
384 "Nameservers.Configuration": [],
387 "Proxy.Configuration": {},
394 "Timeservers.Configuration": [],
401 "/net/connman/service/wifi_50465dae486e_54534e4f6666696365574c414e_managed_ieee8021x",
402 "/net/connman/service/wifi_50465dae486e_4c6162776c616e_managed_ieee8021x"