Created
July 9, 2017 04:32
-
-
Save electronut/9e9fa0021d6ad9842604de7782276d0a to your computer and use it in GitHub Desktop.
bluey-beacon -
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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