Skip to content

Subscribe to topic notify-next #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kvp1703
Copy link
Contributor

@kvp1703 kvp1703 commented Jun 4, 2025

Fix: Add subscription to notify-next topic for OTA job pickup

Description

This change re-introduces the subscription to the notify-next topic. In a previous re-structuring, this essential topic subscription was inadvertently removed. This topic is crucial for the device to be notified of and pick up new OTA jobs that are created after the device has already connected to the AWS IoT Core. Without this subscription, new OTA jobs initiated post-connection were not being detected by the device.

Test Steps

  1. Flash a device with the updated firmware containing this change.
  2. Connect the device to AWS IoT Core.
  3. After the device has successfully connected, create a new OTA update job targeting this device via AWS IoT Jobs.
  4. Verify that the device receives the job notification and proceeds to download and apply the OTA update.

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

Issue 117
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@kvp1703 kvp1703 force-pushed the subscribe-notify-next branch from 6c2a333 to 4222f9d Compare July 28, 2025 12:13
@kvp1703 kvp1703 marked this pull request as ready for review July 28, 2025 12:13
ActoryOu
ActoryOu previously approved these changes Jul 30, 2025
Comment on lines 1396 to 1397
char jobNotifyTopic[ JOBS_API_MAX_LENGTH( strlen( otademoconfigCLIENT_IDENTIFIER ) ) ];
size_t jobNotifyTopicLen = 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Could you help move these variable declarations to the beginning of function to maintain the coding style?

@kvp1703 kvp1703 force-pushed the subscribe-notify-next branch from b6639a5 to 2d44c9a Compare July 30, 2025 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants