Error -304 in writeFields()
显示 更早的评论
Hi,
I am sending environmental data (float) once every 30 minutes from a NodeMCU, so the speed rate is low. Since a couple of months I am experiencing 3-5 errors a day, returning code -304 (Timeout waiting for server to respond) or -301.
I am sending data with this code (very straight-forward):
ThingSpeak.setField( 1, t );
ThingSpeak.setField( 2, h );
ThingSpeak.setField( 3, p );
ThingSpeak.setField( 4, vdd );
int writeSuccess = ThingSpeak.writeFields( myChannelNumber, myWriteAPIKey );
Then I realized that the device was connected to the WIFi extender. If I connect it to the main router (Fritz 7490) WiFi, it does not incur in those errors.
The extender is a NetGear EX7500, with no choice of special settings other than standard WiFi configuration.
What could be the problem?
采纳的回答
更多回答(0 个)
社区
更多回答在 ThingSpeak Community
类别
在 帮助中心 和 File Exchange 中查找有关 ThingSpeak 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!