Yes, lots… nothing that is even remotely about your issue though, as we don’t know nearly enough to even guess at
We are not really a code mechanic shop, but please post your full code, properly formatted as per the Welcome Topic (that everyone reads ) and someone may have a suggestion or three.
And then while waiting… please read through the documentation and Help Center files as the odds are very high that you are not using some of the necessary coding practices needed with IoT based communication requirements.