回答編集履歴
1
参考リンクと引用
test
CHANGED
@@ -1 +1,29 @@
|
|
1
1
|
`on_disconnect` の引数は `client, userdata, rc` の3つです。`flag` はありません。
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
[Callbacks](https://pypi.org/project/paho-mqtt/#callbacks) より
|
6
|
+
|
7
|
+
```
|
8
|
+
|
9
|
+
on_disconnect(client, userdata, rc)
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
Called when the client disconnects from the broker.
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
client
|
18
|
+
|
19
|
+
the client instance for this callback
|
20
|
+
|
21
|
+
userdata
|
22
|
+
|
23
|
+
the private user data as set in Client() or user_data_set()
|
24
|
+
|
25
|
+
rc
|
26
|
+
|
27
|
+
the disconnection result
|
28
|
+
|
29
|
+
```
|