本日のMQTT(もきゅっと)の会直前に時雨堂さんがMQTT as a Service, sangoをリリースしていたので触ってみた。 sango GitHubアカウントを利用して上記サイトから無料登録する。ログインするとユーザ名、パスワードが出てくるのでメモる。 次にMQTTのPythonクライアントライブラリであるphao-mqttを準備。 # -*- coding: utf-8 -*- import paho.mqtt.client as mqtt def on_connect(client, userdata, flags, rc): print('Connected with result code '+str(rc)) client.subscribe("achiku@github/#") def on_message(client, userdata, msg): print(