Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set configuration for 4 smells/gases? #39

Open
sensboston opened this issue Aug 9, 2024 · 0 comments
Open

How to set configuration for 4 smells/gases? #39

sensboston opened this issue Aug 9, 2024 · 0 comments

Comments

@sensboston
Copy link

Hi, I'm interested, how to set sensor to classify 4 different smells/gases?

This example provides included configuration for 1 smell only. So, should I list all pre-learned configs one by one, like:

const uint8_t bsec_config[] = {
                                  #include "config/smell1_selectivity.txt"
                                  #include "config/smell2_selectivity.txt"
                                  #include "config/smell3_selectivity.txt"
                                  #include "config/smell4_selectivity.txt"
                                };

I tried to look in sources but this function:

bool Bsec2::setConfig(const uint8_t *config)
{
    status = bsec_set_configuration_m(bsecInstance, config, BSEC_MAX_PROPERTY_BLOB_SIZE, workBuffer, BSEC_MAX_WORKBUFFER_SIZE);
    if (status != BSEC_OK)
        return false;

    memset(&bmeConf, 0, sizeof(bmeConf));

    return true;
}

didn't tell much and I can't find source for bsec_set_configuration_m

Thank you for suggestion and (if any) code snippet(s)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant