Sign in
◑
Theme
android-kvm
/
buildroot
/
20bb0aff7db09d0f5286391cbc5be7aa8a08df46
/
.
/
support
/
testing
/
tests
/
package
/
sample_python_paho_mqtt.py
blob: 769ad6250fa07e3b79e8a602ebe4e2a20774d3b6 [
file
]
from
paho
.
mqtt
import
publish
,
subscribe
publish
.
single
(
'buildroot/test'
,
payload
=
"Hello, World!"
,
qos
=
2
,
retain
=
True
,
hostname
=
"localhost"
,
port
=
1883
)
message
=
subscribe
.
simple
(
'buildroot/test'
)
print
(
message
.
payload
.
decode
())