PebbleOS
Loading...
Searching...
No Matches
Enumerations | Functions
poll_remote.h File Reference
#include <pbl/services/regular_timer.h>
#include <stdint.h>

Enumerations

enum  PollRemoteService { POLL_REMOTE_SERVICE_MAIL = 0x0 , POLL_REMOTE_SERVICE_DATA_SPOOLING = 0x1 , NUM_POLL_REMOTE_SERVICES }
 Service the phone is asked to poll. More...
 

Functions

void poll_remote_init (void)
 Initialize the per-service state.
 
void poll_remote_send_request (PollRemoteService service)
 Send a poll request now, for instance on user interaction.
 
void poll_remote_start (void)
 Start sending poll requests at the configured intervals.
 
void poll_remote_stop (void)
 Stop sending poll requests.
 
void poll_remote_set_intervals (PollRemoteService service, const uint8_t min_interval_minutes, const uint8_t max_interval_minutes)
 Set the polling intervals of a service.