Skip to content

Commit 3c70ca9

Browse files
committed
Added missing parameters in _client_connect calls
1 parent bb1f7f9 commit 3c70ca9

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

addons/mqtt/nxd_mqtt_client.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2509,6 +2509,7 @@ UINT status;
25092509
client_ptr -> nxd_mqtt_client_websocket_host, client_ptr -> nxd_mqtt_client_websocket_host_length,
25102510
client_ptr -> nxd_mqtt_client_websocket_uri_path, client_ptr -> nxd_mqtt_client_websocket_uri_path_length,
25112511
(UCHAR *)NXD_MQTT_OVER_WEBSOCKET_PROTOCOL, sizeof(NXD_MQTT_OVER_WEBSOCKET_PROTOCOL) - 1,
2512+
client_ptr -> nxd_mqtt_client_websocket_bearer, client_ptr -> nxd_mqtt_client_websocket_bearer_length,
25122513
NX_NO_WAIT);
25132514

25142515
if (status != NX_IN_PROGRESS)
@@ -2616,6 +2617,7 @@ UINT status;
26162617
client_ptr -> nxd_mqtt_client_websocket_host, client_ptr -> nxd_mqtt_client_websocket_host_length,
26172618
client_ptr -> nxd_mqtt_client_websocket_uri_path, client_ptr -> nxd_mqtt_client_websocket_uri_path_length,
26182619
(UCHAR *)NXD_MQTT_OVER_WEBSOCKET_PROTOCOL, sizeof(NXD_MQTT_OVER_WEBSOCKET_PROTOCOL) - 1,
2620+
client_ptr -> nxd_mqtt_client_websocket_bearer, client_ptr -> nxd_mqtt_client_websocket_bearer_length,
26192621
NX_NO_WAIT);
26202622

26212623
if (status == NX_IN_PROGRESS)
@@ -4156,6 +4158,7 @@ UINT old_priority;
41564158
client_ptr -> nxd_mqtt_client_websocket_host, client_ptr -> nxd_mqtt_client_websocket_host_length,
41574159
client_ptr -> nxd_mqtt_client_websocket_uri_path, client_ptr -> nxd_mqtt_client_websocket_uri_path_length,
41584160
(UCHAR *)NXD_MQTT_OVER_WEBSOCKET_PROTOCOL, sizeof(NXD_MQTT_OVER_WEBSOCKET_PROTOCOL) - 1,
4161+
client_ptr -> nxd_mqtt_client_websocket_bearer, client_ptr -> nxd_mqtt_client_websocket_bearer_length,
41594162
wait_option);
41604163
}
41614164
else
@@ -4165,6 +4168,7 @@ UINT old_priority;
41654168
client_ptr -> nxd_mqtt_client_websocket_host, client_ptr -> nxd_mqtt_client_websocket_host_length,
41664169
client_ptr -> nxd_mqtt_client_websocket_uri_path, client_ptr -> nxd_mqtt_client_websocket_uri_path_length,
41674170
(UCHAR *)NXD_MQTT_OVER_WEBSOCKET_PROTOCOL, sizeof(NXD_MQTT_OVER_WEBSOCKET_PROTOCOL) - 1,
4171+
client_ptr -> nxd_mqtt_client_websocket_bearer, client_ptr -> nxd_mqtt_client_websocket_bearer_length,
41684172
wait_option);
41694173
}
41704174

addons/mqtt/nxd_mqtt_client.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ typedef struct NXD_MQTT_CLIENT_STRUCT
392392
UINT nxd_mqtt_client_websocket_host_length;
393393
UCHAR *nxd_mqtt_client_websocket_uri_path;
394394
UINT nxd_mqtt_client_websocket_uri_path_length;
395+
UCHAR *nxd_mqtt_client_websocket_bearer;
396+
UINT nxd_mqtt_client_websocket_bearer_length;
395397
#endif /* NXD_MQTT_OVER_WEBSOCKET */
396398
} NXD_MQTT_CLIENT;
397399

@@ -553,8 +555,8 @@ UINT _nxde_mqtt_client_secure_connect(NXD_MQTT_CLIENT *client_ptr, NXD_ADDRESS *
553555
#endif /* NX_SECURE_ENABLE */
554556

555557
#ifdef NXD_MQTT_OVER_WEBSOCKET
556-
UINT _nxd_mqtt_client_websocket_set(NXD_MQTT_CLIENT *client_ptr, UCHAR *host, UINT host_length, UCHAR *uri_path, UINT uri_path_length);
557-
UINT _nxde_mqtt_client_websocket_set(NXD_MQTT_CLIENT *client_ptr, UCHAR *host, UINT host_length, UCHAR *uri_path, UINT uri_path_length);
558+
UINT _nxd_mqtt_client_websocket_set(NXD_MQTT_CLIENT *client_ptr, UCHAR *host, UINT host_length, UCHAR *uri_path, UINT uri_path_length, UCHAR *bearer, UINT bearer_length);
559+
UINT _nxde_mqtt_client_websocket_set(NXD_MQTT_CLIENT *client_ptr, UCHAR *host, UINT host_length, UCHAR *uri_path, UINT uri_path_length, UCHAR *bearer, UINT bearer_length);
558560
VOID _nxd_mqtt_client_websocket_connection_status_callback(NX_WEBSOCKET_CLIENT *websocket_client_ptr, VOID *context, UINT status);
559561
#endif /* NXD_MQTT_OVER_WEBSOCKET */
560562

0 commit comments

Comments
 (0)