This repository was archived by the owner on Dec 14, 2021. It is now read-only.
File tree 2 files changed +43
-0
lines changed
2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 6
6
* [ close] ( #close )
7
7
* [ set_uplink_callback] ( #set_uplink_callback )
8
8
* [ uplink_callback] ( #uplink_callback )
9
+ * [ set_uplink_callback_raw] ( #set_uplink_callback_raw )
10
+ * [ uplink_callback_raw] ( #uplink_callback_raw )
9
11
* [ set_connect_callback] ( #set_connect_callback )
10
12
* [ connect_callback] ( #connect_callback )
11
13
* [ set_downlink_callback] ( #set_downlink_callback )
@@ -89,6 +91,23 @@ The callback function must be declared in the script following this structure:
89
91
* ` msg ` : ** UplinkMessage object** the message received by the client.
90
92
* ` client ` : ** MQTTClient object** the client from which the callback is executed.
91
93
94
+ #### set_uplink_callback_raw
95
+
96
+ Add a callback function, to be called when an uplink message is received.
97
+ This function provides compatibility with existing paho.mqtt.client implementations.
98
+
99
+ ``` python
100
+ client.set_uplink_callback_raw(uplink_callback_raw)
101
+ ```
102
+
103
+ ##### uplink_callback_raw
104
+
105
+ The callback function must be declared in the script following this structure:
106
+
107
+ * ` uplink_callback_raw(msg, client) `
108
+ * ` msg ` : ** paho.mqtt.client.MQTTMessage object** the message received by the client.
109
+ * ` client ` : ** MQTTClient object** the client from which the callback is executed.
110
+
92
111
#### set_connect_callback
93
112
94
113
Add a connection callback function to be executed when the client connects to the broker.
Original file line number Diff line number Diff line change @@ -129,6 +129,30 @@ structure:
129
129
- ``client ``: **MQTTClient object ** the client from which the
130
130
callback is executed.
131
131
132
+ set_uplink_callback_raw
133
+ ^^^^^^^^^^^^^^^^^^^^^^^
134
+
135
+ Add a callback function, to be called when an uplink message is
136
+ received. This function provides compatibility with existing
137
+ paho.mqtt.client implementations.
138
+
139
+ .. code :: python
140
+
141
+ client.set_uplink_callback_raw(uplink_callback_raw)
142
+
143
+ uplink_callback_raw
144
+ '''''''''''''''''''
145
+
146
+ The callback function must be declared in the script following this
147
+ structure:
148
+
149
+ - ``uplink_callback_raw(msg, client) ``
150
+
151
+ - ``msg ``: **paho.mqtt.client.MQTTMessage object ** the message
152
+ received by the client.
153
+ - ``client ``: **MQTTClient object ** the client from which the
154
+ callback is executed.
155
+
132
156
set_connect_callback
133
157
^^^^^^^^^^^^^^^^^^^^
134
158
You can’t perform that action at this time.
0 commit comments