Loading...
Searching...
No Matches
store_poll.h File Reference

Wall-clock deadlines for the stores that poll the phone. More...

#include <pebble.h>
#include <time.h>

Go to the source code of this file.

Data Structures

struct  StorePoll
 One store's polling: its interval, whether it polls at all, and when it is next due. More...

Functions

static time_t store_poll_next (int poll_min, time_t now)
 The next wall-clock second a poll of this interval falls due.
static bool store_poll_due (int poll_min, time_t *next, time_t now)
 Whether next has come round, moving it on to the following deadline when it has.
static bool store_poll_reconnect_due (int age_s, int poll_min)
 Whether a reading is worth asking for again now that the phone is back.
bool store_poll_set (StorePoll *poll, int poll_min, bool live, time_t now)
 Take a store's interval and whether it is live, as its init and its reconfigure both do.
bool store_poll_turn (StorePoll *poll, time_t now)
 A store's turn on the face's cadence: whether a poll should go out now.

Detailed Description

Wall-clock deadlines for the stores that poll the phone.