I’ve got a fairly simple program that sends data to a web endpoint via publish (works fine) and subscribes to the response (CallBack set up in setup()). I was having problems with it losing the subscribe over time so I modified the code to subscribe just before the Publish() and unsubscribed at the end of the CallBack. That “seemed” to fix the problem, but apparently not… The Events console shows the data in the hook-response, but my CallBack is not always firing. This was the case for multiple iterations and then (no new flashing or any other environmental change), it’s again hitting the CallBack (i am monitoring on the cli console). There doesn’t seem to be any reason why my CallBack works, then doesn’t, the does again. I’ve read several (older) threads that seem to be similar to my problem, but they all appear to resolve with later firmware versions. I am using 2.0.0-rc4.
My question is; Are there still issues around subscribing to a web response? And am I correct in unsubscribing and re-subscribing as I’ve described? Not sure what best practice is for this. Thanks