File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 19
19
extern "C" {
20
20
#endif
21
21
22
- #define MQTT_TOPIC_LEN_MAX 64
22
+ #define MQTT_TOPIC_LEN_MAX 256
23
23
24
24
/**
25
25
* @brief MQTT error codes
@@ -168,6 +168,24 @@ const char *mqtt_set_port(mqtt_client_t *client, const char *port);
168
168
*/
169
169
const char * mqtt_set_ca (mqtt_client_t * client , const char * ca );
170
170
171
+ /**
172
+ * @brief Set client certificate
173
+ *
174
+ * @param client MQTT client handle
175
+ * @param cert client certificate in PEM format
176
+ * @return 0 on success, error code otherwise
177
+ */
178
+ int mqtt_set_client_cert (mqtt_client_t * client , char * cert );
179
+
180
+ /**
181
+ * @brief Set client private key
182
+ *
183
+ * @param client MQTT client handle
184
+ * @param key client private key
185
+ * @return 0 on success, error code otherwise
186
+ */
187
+ int mqtt_set_client_prvkey (mqtt_client_t * client , char * key );
188
+
171
189
/**
172
190
* @brief Set custom user argument passed to reconnect hook handler
173
191
*
You can’t perform that action at this time.
0 commit comments