I am wondering how I can call wd.checkin(); in other libraries within my firmware? Application wd(); is initalized within my main file but how can i call it in an included library?
https://docs.particle.io/reference/firmware/photon/#application-watchdog
Thanks,
The extern
keyword might be a thing to look into.
But having a library rely on an extern
variable is not the best design practice. You could consider passing an object pointer to the library for further use in there.
Depending on the intended use of the object there might be other options too.
3 Likes