src/bsec.cpp
void Bsec::getState(uint8_t *state)
{
	uint8_t workBuffer[BSEC_MAX_STATE_BLOB_SIZE];
	uint32_t n_serialized_state = BSEC_MAX_STATE_BLOB_SIZE;
	status = bsec_get_state(0, state, BSEC_MAX_STATE_BLOB_SIZE, workBuffer, BSEC_MAX_STATE_BLOB_SIZE, &n_serialized_state);
}
/**
 * @brief Function to get the state of the algorithm to save to non-volatile memory
 */
@brief Function to get the state of the algorithm to save to non-volatile memory
@brief Function to get the state of the algorithm to save to non - volatile memory
void Bsec::getState(uint8_t *state)
{
	uint8_t workBuffer[BSEC_MAX_STATE_BLOB_SIZE];
	uint32_t n_serialized_state = BSEC_MAX_STATE_BLOB_SIZE;
	status = bsec_get_state(0, state, BSEC_MAX_STATE_BLOB_SIZE, workBuffer, BSEC_MAX_STATE_BLOB_SIZE, &n_serialized_state);
}
void Bsec :: getState ( uint8_t * state ) { uint8_t workBuffer [ BSEC_MAX_STATE_BLOB_SIZE ] ; uint32_t n_serialized_state = BSEC_MAX_STATE_BLOB_SIZE ; status = bsec_get_state ( 0 , state , BSEC_MAX_STATE_BLOB_SIZE , workBuffer , BSEC_MAX_STATE_BLOB_SIZE , & n_serialized_state ) ; }
@brief Function to get the state of the algorithm to save to non-volatile memory
@brief Function to get the state of the algorithm to save to non - volatile memory