Sign in
nest-open-source
/
nest-learning-thermostat
/
5.8.1
/
connman
/
0297ab33d508ee186dec1d3ef6af624934e07713
/
.
/
test
/
get-state
blob: 75d5a16a7fe9a3d9f65edc79202fe0793b9e9678 [
file
] [
log
] [
blame
]
#!/usr/bin/python
import
dbus
bus
=
dbus
.
SystemBus
()
manager
=
dbus
.
Interface
(
bus
.
get_object
(
'net.connman'
,
"/"
),
'net.connman.Manager'
)
properties
=
manager
.
GetProperties
()
print
"System is %s"
%
(
properties
[
"State"
])