Hello object developers,
I created object+interface+peripheral for a device which provides heartbeat (alive) Bit. I read this bit in OnEcUpdateIntputs of my peripheral object and now I would like to display an error event if the alive Bit is not changing.
I have some idea how to deal with that, but I am not sure what is the right way. So here is my proposal:
- Evaluate bit is changing on peripheral side and transfer the state (IsAlive) to top level object using interface.
- Check the status of IsAlive in OnUnitOperational of Unit and trigger event if it is not present.
Is it right or should I do that differently?