You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to disable the automatic SHADOW_GET message on MQTT (re)connect. As per documented note in the mgos_shadow.h header file i tried different configurations, but none of them worked fine.
The note in mgos_shadow.h header file says:
/*
* Request shadow state. Response will arrive via GET_ACCEPTED topic.
* Note that MGOS automatically does this on every (re)connect if
* device.shadow.get_on_connect is true (default).
*/
bool mgos_shadow_get(void);
I tried adding this to conf0.json, but it didn't work.
This is very VERY old but i just got into the same problem and posting the answer here in case others encounter the same.
If you want to completely disable shadow service put this in your mos.yml: - ["shadow.enable", "b", false, {title: "Request shadow state on connect"}]
And here is the entire shadow section fo the config file that you can modify - FYI - when i was working on flee provisioning in AWS IoT Core where broker accepts only specific payload on specific topic i had to disable the shadow service completely ( disabling getting it on connect was not enough for some reason ) in order to get certificates back.
Also - no idea why but when i tried to connect to aws iot only using pure mqtt without the AWS lib - it didn't work, you always need to have aws library imported into your project to properly communicate and parse the responses.
Hope that help.
I need to disable the automatic SHADOW_GET message on MQTT (re)connect. As per documented note in the mgos_shadow.h header file i tried different configurations, but none of them worked fine.
The note in mgos_shadow.h header file says:
Could you suggest me how to fix it?
I thank you in advance.
Best Regards
The text was updated successfully, but these errors were encountered: