|
PebbleOS
|
Pebble Protocol endpoint 0x2cb0 for actions executed by the phone. More...
Functions | |
| void | timeline_action_endpoint_invoke_action (const Uuid *id, TimelineItemActionType type, uint8_t action_id, const AttributeList *attributes, bool do_async) |
| Ask the phone to invoke an action. | |
| void | timeline_action_endpoint_send_displayed_item (const Uuid *id) |
| Tell the phone which notification the watch is displaying. | |
| void | timeline_action_endpoint_protocol_msg_callback (CommSession *session, const uint8_t *data, size_t length) |
| Handle a message from the phone on the timeline action endpoint. | |
Pebble Protocol endpoint 0x2cb0 for actions executed by the phone.
The watch sends invoke action requests; the phone answers with a response that is posted as a PebbleSysNotificationActionResult.
| void timeline_action_endpoint_invoke_action | ( | const Uuid * | id, |
| TimelineItemActionType | type, | ||
| uint8_t | action_id, | ||
| const AttributeList * | attributes, | ||
| bool | do_async | ||
| ) |
Ask the phone to invoke an action.
| id | Id of the pin or notification. |
| type | Type of the action; ANCS response and generic actions use the ANCS variant of the command. |
| action_id | Id of the action. |
| attributes | Extra attributes to send (e.g. the reply text), may be NULL. |
| do_async | true to send from KernelBG, false to send from the current task. |
| void timeline_action_endpoint_protocol_msg_callback | ( | CommSession * | session, |
| const uint8_t * | data, | ||
| size_t | length | ||
| ) |
Handle a message from the phone on the timeline action endpoint.
| session | Session the message arrived on. |
| data | Message. |
| length | Length of data in bytes. |
| void timeline_action_endpoint_send_displayed_item | ( | const Uuid * | id | ) |
Tell the phone which notification the watch is displaying.
Only sent to phones with CommSessionNotificationWindowStateSupport.
| id | Id of the displayed notification, or NULL when none is displayed. |