Skip to content

Instantly share code, notes, and snippets.

@electronut
Created July 9, 2017 04:32
Show Gist options
  • Save electronut/9e9fa0021d6ad9842604de7782276d0a to your computer and use it in GitHub Desktop.
Save electronut/9e9fa0021d6ad9842604de7782276d0a to your computer and use it in GitHub Desktop.
bluey-beacon -
// one-shot flag for setting adv data
static volatile bool g_setAdvData = false;
/**@brief Function for handling the Battery measurement timer timeout.
*
* @details This function will be called each time the battery level measurement timer expires.
*
* @param[in] p_context Pointer used for passing some arbitrary information (context) from the
* app_start_timer() call to the timeout handler.
*/
static void beacon_timeout_handler(void * p_context)
{
UNUSED_PARAMETER(p_context);
// set update data flag
g_setAdvData = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment