-
Notifications
You must be signed in to change notification settings - Fork 9
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
Status = 0 unless delay is increased #7
Comments
@don do you have an example sketch to reproduce the issue? I can look into getting Azure credentials if needed. |
@sandeepmistry Try this sketch https://github.com/don/MKR1000-Azure/blob/master/MKR1000-Azure.ino It's not using the RestClient but it has the same problem where it fails without the delay. I set the delay to 200 https://github.com/don/MKR1000-Azure/blob/master/MKR1000-Azure.ino#L144 here for more consistent results. The example code is using some demo API keys, so it should work for a while. If not email me and I'll generate some keys for you. |
@don thank you for providing the example. I think the following lines: https://github.com/don/MKR1000-Azure/blob/master/MKR1000-Azure.ino#L80-L84 need to be changed to the following:
then the delay can be removed in your sketch. Without a check for Do you also have an example for the original issue, where use of the RestClient was failing? It has a check for |
I've submitted #9 to resolve this. The root cause of this issue is |
When posting data to Azure IoT from a MKR1000, I'm getting status of 0.
If I increase the delay to 150, it works every time and I get the expected
204 No Content
response.RestClient/RestClient.cpp
Lines 103 to 105 in da79137
What's the right way to fix this?
The text was updated successfully, but these errors were encountered: