-
Notifications
You must be signed in to change notification settings - Fork 5
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
Adding OTA Agent with suspend resume. #37
Conversation
if( status == MQTTRecvFailed ) | ||
{ | ||
printf( "ERROR: MQTT Receive failed. Closing connection.\n" ); | ||
exit( 1 ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this closing the connection? Seems like it would kill the demo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this can kill the demo. We followed the same approach in the chain of responsibility demo as well.
We can add retries if don't want to stop the demo in case of network failure or connection issues.
|
||
jobIdLength = coreJobs_getJobId( (char *)jobDoc->jobData, jobDoc->jobDataLength, &jobId ); | ||
|
||
/* TODO: Change length to the length of global job id */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this still need to be done?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I think we need to revisit this part to avoid the scenario where the jobIDLength is greater than the maximum job id length.
Can you include some testing details? I know you ran the demo but seeing what the output should look like (even if truncated) would be helpful |
A README explaining the demo would certainly be nice to have |
Discussed offline with @manvensh. This code was specifically written to ONLY ever modify the |
2199b83
to
10f7751
Compare
Working on it and will add it as a part of next PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would still like to see the demo output on the CR description
Adding OTA Agent with suspend resume.
Testing