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

Allow to programatically enable or disable azure. #3

Open
zdila opened this issue Dec 12, 2019 · 3 comments
Open

Allow to programatically enable or disable azure. #3

zdila opened this issue Dec 12, 2019 · 3 comments

Comments

@zdila
Copy link

zdila commented Dec 12, 2019

Calling mgos_sys_config_set_azure_enable(true); doesn't enable azure if it is disabled.

Maybe depends on cesanta/mongoose-os#490

@zdila
Copy link
Author

zdila commented Dec 12, 2019

Workaround:

bool mgos_azure_init(void); // not present in mgos_azure.h

void azure_connect() {
  mgos_sys_config_set_azure_enable(true);
  mgos_azure_init();
  mgos_mqtt_global_connect();
}

@rojer
Copy link
Contributor

rojer commented Dec 23, 2019

to be clear: it may work today, but this is not the supported way.
the library needs to be changed to support doing it properly.

@Harvie
Copy link

Harvie commented Apr 6, 2020

Maybe this workaround can be just added as mgos_azure_enable(bool); call to azure module and when there's new/better way, the code can be modified in azure module, so it will not affect functionality of 3rd party code using it.

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

3 participants