PebbleOS
Loading...
Searching...
No Matches
Functions
Phone endpoint

Pebble Protocol phone control endpoint (0x21). More...

Functions

void pp_answer_call (uint32_t cookie)
 Ask the phone to answer a call.
 
void pp_decline_call (uint32_t cookie)
 Ask the phone to decline or hang up a call.
 
void pp_get_phone_state (void)
 Request the state of the phone's calls.
 
void pp_get_phone_state_set_enabled (bool enabled)
 Enable or disable handling of Get Phone State responses.
 

Detailed Description

Pebble Protocol phone control endpoint (0x21).

Sends call control commands to the phone over the system session. If no session exists, a call disconnect event is emitted instead.

Function Documentation

◆ pp_answer_call()

void pp_answer_call ( uint32_t  cookie)

Ask the phone to answer a call.

Parameters
cookieCall identifier from the phone event.

◆ pp_decline_call()

void pp_decline_call ( uint32_t  cookie)

Ask the phone to decline or hang up a call.

Parameters
cookieCall identifier from the phone event.

◆ pp_get_phone_state()

void pp_get_phone_state ( void  )

Request the state of the phone's calls.

◆ pp_get_phone_state_set_enabled()

void pp_get_phone_state_set_enabled ( bool  enabled)

Enable or disable handling of Get Phone State responses.

Used to ignore stray responses still in flight after the user declined the call from the watch.

Parameters
enabledTrue to handle responses, false to drop them.