Skip to content

Commit 194e146

Browse files
committed
Added missing bearer and bearer_legth references
1 parent 3c70ca9 commit 194e146

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

addons/mqtt/nxd_mqtt_client.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6506,7 +6506,7 @@ NXD_MQTT_CLIENT *client_ptr = (NXD_MQTT_CLIENT *)context;
65066506
/* 10-31-2022 Yuxin Zhou Initial Version 6.2.0 */
65076507
/* */
65086508
/**************************************************************************/
6509-
UINT _nxd_mqtt_client_websocket_set(NXD_MQTT_CLIENT *client_ptr, UCHAR *host, UINT host_length, UCHAR *uri_path, UINT uri_path_length)
6509+
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)
65106510
{
65116511
UINT status;
65126512

@@ -6523,6 +6523,8 @@ UINT status;
65236523
client_ptr -> nxd_mqtt_client_websocket_host_length = host_length;
65246524
client_ptr -> nxd_mqtt_client_websocket_uri_path = uri_path;
65256525
client_ptr -> nxd_mqtt_client_websocket_uri_path_length = uri_path_length;
6526+
client_ptr -> nxd_mqtt_client_websocket_bearer = bearer;
6527+
client_ptr -> nxd_mqtt_client_websocket_bearer_length = bearer_length;
65266528

65276529
/* Create WebSocket. */
65286530
status = nx_websocket_client_create(&client_ptr -> nxd_mqtt_client_websocket, (UCHAR *)"",
@@ -6584,7 +6586,7 @@ UINT status;
65846586
/* 10-31-2022 Yuxin Zhou Initial Version 6.2.0 */
65856587
/* */
65866588
/**************************************************************************/
6587-
UINT _nxde_mqtt_client_websocket_set(NXD_MQTT_CLIENT *client_ptr, UCHAR *host, UINT host_length, UCHAR *uri_path, UINT uri_path_length)
6589+
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)
65886590
{
65896591

65906592
/* Validate the parameters. */
@@ -6594,6 +6596,6 @@ UINT _nxde_mqtt_client_websocket_set(NXD_MQTT_CLIENT *client_ptr, UCHAR *host, U
65946596
return(NX_PTR_ERROR);
65956597
}
65966598

6597-
return(_nxd_mqtt_client_websocket_set(client_ptr, host, host_length, uri_path, uri_path_length));
6599+
return(_nxd_mqtt_client_websocket_set(client_ptr, host, host_length, uri_path, uri_path_length, bearer, bearer_length));
65986600
}
65996601
#endif /* NXD_MQTT_OVER_WEBSOCKET */

0 commit comments

Comments
 (0)