Skip to content

Commit adc5732

Browse files
committed
manifest: Pull MQTT 5.0 support from upstream
Pull MQTT 5.0 support from upstream and align NCS codebase. Signed-off-by: Robert Lubos <[email protected]>
1 parent 2ed4ef5 commit adc5732

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

applications/serial_lte_modem/src/mqtt_c/slm_at_mqtt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ static int do_mqtt_disconnect(void)
424424
return -ENOTCONN;
425425
}
426426

427-
err = mqtt_disconnect(&client);
427+
err = mqtt_disconnect(&client, NULL);
428428
if (err) {
429429
LOG_ERR("ERROR: mqtt_disconnect %d", err);
430430
return err;

subsys/net/lib/mqtt_helper/mqtt_helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ int mqtt_helper_disconnect(void)
622622

623623
mqtt_state_set(MQTT_STATE_DISCONNECTING);
624624

625-
err = mqtt_disconnect(&mqtt_client);
625+
err = mqtt_disconnect(&mqtt_client, NULL);
626626
if (err) {
627627
/* Treat the sitation as an ungraceful disconnect */
628628
LOG_ERR("Failed to send disconnection request, treating as disconnected");

subsys/net/lib/nrf_cloud/src/nrf_cloud_transport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@ int nct_disconnect(void)
11961196
LOG_DBG("Disconnecting");
11971197

11981198
dc_endpoint_free();
1199-
return mqtt_disconnect(&nct.client);
1199+
return mqtt_disconnect(&nct.client, NULL);
12001200
}
12011201

12021202
int nct_process(void)

tests/subsys/net/lib/mqtt_helper/src/mqtt_helper_test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ void test_on_publish_too_large_incoming_msg(void)
400400

401401
void test_mqtt_helper_disconnect_when_connected(void)
402402
{
403-
__cmock_mqtt_disconnect_ExpectAndReturn(&mqtt_client, 0);
403+
__cmock_mqtt_disconnect_ExpectAndReturn(&mqtt_client, NULL, 0);
404404

405405
mqtt_state = MQTT_STATE_CONNECTED;
406406

@@ -410,7 +410,7 @@ void test_mqtt_helper_disconnect_when_connected(void)
410410

411411
void test_mqtt_helper_disconnect_when_connected_mqtt_api_error(void)
412412
{
413-
__cmock_mqtt_disconnect_ExpectAndReturn(&mqtt_client, -1);
413+
__cmock_mqtt_disconnect_ExpectAndReturn(&mqtt_client, NULL, -1);
414414

415415
mqtt_state = MQTT_STATE_CONNECTED;
416416

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ manifest:
6565
# https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/modules.html
6666
- name: zephyr
6767
repo-path: sdk-zephyr
68-
revision: 9442059bfd79de2f8e8ad858e7ad064694493bc1
68+
revision: 1a2d42b0aa3b4bc2148d4c1ae2ccc977cf6282c5
6969
import:
7070
# In addition to the zephyr repository itself, NCS also
7171
# imports the contents of zephyr/west.yml at the above

0 commit comments

Comments
 (0)