Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4616

SDK • background vs poll application

$
0
0
Hi,

As a new picow SDK app developer, I would like to know the difference between background and poll mode. Up to now I have used background mode, because it just seemed to work. But now I want to use a watchdog, and the very short 8 second maximum timer seems to be a problem with background mode.

Doing IOT, I want to reset if I get some kind of assert or SDK detected failure. I would like to reset and try again. I know that is a big failure, but for infrequent failures, I am having problems with long API things like connecting to an AP, or using mdns or getting ntp time hitting the watchdog. For my simple device I would be happy to get a reset after say 1 minute of hang.

So now I think I should change to poll mode, so I can stroke the watchdog faster, but still have it hit if some kind of API hang happens.

Steve

Statistics: Posted by nospamcalfee — Wed Mar 05, 2025 3:07 am — Replies 0 — Views 39



Viewing all articles
Browse latest Browse all 4616

Trending Articles