Page 1 of 1

2.x to 3.x migration and updates

Posted: Wed Aug 28, 2024 9:36 am
by ephogy
I've been migrating some MOD5414X code from 2.x to 3.x and I was using the update_shutdown_func and the update_complete_func. I can't seem to locate similar function calls in the nbupdate.cpp file.

Am I missing something here, or are there plans to add these function callbacks? They're useful for cleaning up -- particularly with open files.

Re: 2.x to 3.x migration and updates

Posted: Thu Aug 29, 2024 4:05 am
by TomNB
Hello,

Is this what you are looking for, or had you already considered it?
https://www.netburner.com/NBDocs/Develo ... tdown.html

Re: 2.x to 3.x migration and updates

Posted: Thu Aug 29, 2024 1:15 pm
by ephogy
This is probably what I'm looking for. I was running through the nbupdate.cpp code and didn't see any calls before the flashing occurred. I see they are in config_server.cpp.

Thank you.

Re: 2.x to 3.x migration and updates

Posted: Tue Sep 03, 2024 1:30 pm
by TomNB
Correct, the client utility does not control the callback, it must be in the application itself, since only the application would know what it needs to do before an update.