Error sending data to ThingSpeak - Data Intervals??
37 次查看(过去 30 天)
显示 更早的评论
I am sending data from sensors on a XIAO esp32 S3 - there are 6 fields of data - I have timed to send every 5 minutes. When I initiate the code it sends 2 or 3 sets, but then I get an error message saying 'Error sending data to ThingSpeak' - and it doesnt send any more data unless I reset the esp , yet the data is being collected as shown on the serial monitor. I have played around witht the time intervals but no joy. Is it a function of thinkspeak or should I investigate the code?
4 个评论
Christopher Stapels
2024-7-1
@Umar I really want you to stay and be part of the community. But your answer sounds very much like it was generated by an LLM. The community guidelines allow this, but you are supposed to indicate that you are using AI for your answer.
For example, you said "Review ThingSpeak limits" even though the OP said they send data every 5 minutes, At present, the slowest limit for ThingSpeak is 15 seconds. I've definitely seen times when an LLM will offer that kind of generic advice, but humans who dot know the actual information usually don't bother to write such generalities.
And the "Hope following these steps will help resolve your problem." has never been posted by a human.
So please continue to be part of the community, and feel free to use AI to help you answer, but please indicate you used AI. And even better, reread the AI response and write it in the kind of language that would help you solve the problem if you were reading it. MATLAB answers need people like you that are willing to read questions and offer help. But please answer with a little more care.
Umar
2024-7-1
Dear Chris,
Thank you for your feedback and for expressing your desire for me to continue being part of the community. I don’t know if such tool does exist because it will not help you understand the meaning behind code and definitely not help you gain knowledge about Mathworks, Simulink. You are an essential part of community as well. Our goal should be helping out people struggling with problems and help make difference in their lives.
I appreciate your guidance on how to improve my responses, and I will strive to provide more specific and helpful advice in line with the community guidelines. Your input is valuable, and I am committed to contributing in a way that adds value to the discussions.
Again, thank you for encouraging me to continue being part of the community.
回答(2 个)
Christopher Stapels
2024-6-30
编辑:Christopher Stapels
2024-7-1
Generally I'd look at the code. ThingSpeak will only reject your data if you send it too fast or format it wrong, but it seems you are not sending data too fast. Are you using the thingSpeak communication library? Are you getting a specific error code? Wi fi strength is often an issue.
2 个评论
Christopher Stapels
2024-7-3
编辑:Christopher Stapels
2024-7-3
I see in your code that you send
"Failed to send data. HTTP Code:" is this the error you get? if so, what http code do you get?
A couple more comments: You may not really need to generate a timestamp - if you dont provide one, ThingSpeak will use the time you write to the server.
You can record RSSI in filed 8 to see how strong the network signal is.
I usually make the wifi client global, but this may not be necessary.
You say you get 2-3 sets of data in your channel. How far apart are the timestamps for these 2-3 sets of data?
Edward
2024-7-3
1 个评论
Christopher Stapels
2024-7-3
Can you share a few choice segments of the code so we can see how you are writing?
社区
更多回答在 ThingSpeak Community
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Write Data to Channel 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!