Rename create_event_on_device() to add_event().
Add heartbeat().