@@ -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
@@ -6502,7 +6506,7 @@ NXD_MQTT_CLIENT *client_ptr = (NXD_MQTT_CLIENT *)context;
65026506/* 10-31-2022 Yuxin Zhou Initial Version 6.2.0 */
65036507/* */
65046508/**************************************************************************/
6505- 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 )
65066510{
65076511UINT status ;
65086512
@@ -6519,6 +6523,8 @@ UINT status;
65196523 client_ptr -> nxd_mqtt_client_websocket_host_length = host_length ;
65206524 client_ptr -> nxd_mqtt_client_websocket_uri_path = uri_path ;
65216525 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 ;
65226528
65236529 /* Create WebSocket. */
65246530 status = nx_websocket_client_create (& client_ptr -> nxd_mqtt_client_websocket , (UCHAR * )"" ,
@@ -6580,7 +6586,7 @@ UINT status;
65806586/* 10-31-2022 Yuxin Zhou Initial Version 6.2.0 */
65816587/* */
65826588/**************************************************************************/
6583- 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 )
65846590{
65856591
65866592 /* Validate the parameters. */
@@ -6590,6 +6596,6 @@ UINT _nxde_mqtt_client_websocket_set(NXD_MQTT_CLIENT *client_ptr, UCHAR *host, U
65906596 return (NX_PTR_ERROR );
65916597 }
65926598
6593- 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 ));
65946600}
65956601#endif /* NXD_MQTT_OVER_WEBSOCKET */
0 commit comments