Hi Ayoub,
> sbabic/ <
https://github.com/sbabic/>
> > swupdate/blob/master/suricatta/server_hawkbit.c#L806
> > is designed to prevent re-processing while (get_state() ==
> > STATE_INSTALLED) but it can never fire because the state has just
> been
> > cleared.
> >
> > is my reading is correct ?
> >
>
> Have you passed the status of the update when SWUpdate is started ?
> That
> is with -u "-c 2" or -u "-c 6" ?
>
>
> I'm trying to avoid that and have swupdate-ipc sendtohawkbit sending the
> confirmation to the Hawkbit server
swupdate-ipc is not necessary.
The use case with swupdate-ipc is when the confirmation should be sent
later by the application, or there is a HMI and the operator / end
customer must acknowledge the new version.
> after validating the now booting slot ( no watchdog triggered/ health-
> check okay) this of course is delayed and happening only after swupdate
> is started.
See my last email - the use case is that software is running, and the
glue logic to start SWUpdate sets the parameters to inform about the
result, that is via -u "--confirm 2" (Ok), -u "--confirm 3" (FAILED) or
-u "--confirm 6" (WAIT).
>
> Is this scenario considered at all ? what's the point then of
> sendtohawkbit ?
sendtohawkbit is for the use cases where an external tool / application
/ whatever decides if the update is ok or not. As your use case if that
system is up again, you have to inject the right parameter when SWUpdate
is started.