teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

参考リンクと引用

2021/03/16 09:50

投稿

yuki23
yuki23

スコア1459

answer CHANGED
@@ -1,1 +1,15 @@
1
- `on_disconnect` の引数は `client, userdata, rc` の3つです。`flag` はありません。
1
+ `on_disconnect` の引数は `client, userdata, rc` の3つです。`flag` はありません。
2
+
3
+ [Callbacks](https://pypi.org/project/paho-mqtt/#callbacks) より
4
+ ```
5
+ on_disconnect(client, userdata, rc)
6
+
7
+ Called when the client disconnects from the broker.
8
+
9
+ client
10
+ the client instance for this callback
11
+ userdata
12
+ the private user data as set in Client() or user_data_set()
13
+ rc
14
+ the disconnection result
15
+ ```