mirror of
https://github.com/azure-rtos/netxduo.git
synced 2025-10-14 02:58:01 +08:00
Added missing bearer and bearer_legth references
This commit is contained in:
@@ -6506,7 +6506,7 @@ NXD_MQTT_CLIENT *client_ptr = (NXD_MQTT_CLIENT *)context;
|
||||
/* 10-31-2022 Yuxin Zhou Initial Version 6.2.0 */
|
||||
/* */
|
||||
/**************************************************************************/
|
||||
UINT _nxd_mqtt_client_websocket_set(NXD_MQTT_CLIENT *client_ptr, UCHAR *host, UINT host_length, UCHAR *uri_path, UINT uri_path_length)
|
||||
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)
|
||||
{
|
||||
UINT status;
|
||||
|
||||
@@ -6523,6 +6523,8 @@ UINT status;
|
||||
client_ptr -> nxd_mqtt_client_websocket_host_length = host_length;
|
||||
client_ptr -> nxd_mqtt_client_websocket_uri_path = uri_path;
|
||||
client_ptr -> nxd_mqtt_client_websocket_uri_path_length = uri_path_length;
|
||||
client_ptr -> nxd_mqtt_client_websocket_bearer = bearer;
|
||||
client_ptr -> nxd_mqtt_client_websocket_bearer_length = bearer_length;
|
||||
|
||||
/* Create WebSocket. */
|
||||
status = nx_websocket_client_create(&client_ptr -> nxd_mqtt_client_websocket, (UCHAR *)"",
|
||||
@@ -6584,7 +6586,7 @@ UINT status;
|
||||
/* 10-31-2022 Yuxin Zhou Initial Version 6.2.0 */
|
||||
/* */
|
||||
/**************************************************************************/
|
||||
UINT _nxde_mqtt_client_websocket_set(NXD_MQTT_CLIENT *client_ptr, UCHAR *host, UINT host_length, UCHAR *uri_path, UINT uri_path_length)
|
||||
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)
|
||||
{
|
||||
|
||||
/* Validate the parameters. */
|
||||
@@ -6594,6 +6596,6 @@ UINT _nxde_mqtt_client_websocket_set(NXD_MQTT_CLIENT *client_ptr, UCHAR *host, U
|
||||
return(NX_PTR_ERROR);
|
||||
}
|
||||
|
||||
return(_nxd_mqtt_client_websocket_set(client_ptr, host, host_length, uri_path, uri_path_length));
|
||||
return(_nxd_mqtt_client_websocket_set(client_ptr, host, host_length, uri_path, uri_path_length, bearer, bearer_length));
|
||||
}
|
||||
#endif /* NXD_MQTT_OVER_WEBSOCKET */
|
||||
|
Reference in New Issue
Block a user