Error -304 in writeFields()

조회 수: 8 (최근 30일)
Fabio Marzocca
Fabio Marzocca 2020년 2월 7일
댓글: Fabio Marzocca 2020년 2월 7일
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?

채택된 답변

Vinod
Vinod 2020년 2월 7일
I believe you have isolated the problem to your Netgear extender. The symptoms point to a delay of some sort that the extender introduces that causes the write request to time out.
Your best bet is to reach out to netgear to understand the source of the problem. Maybe your extender needs a periodic "keep alive" packet going to ensure that it stays connected to your router?
  댓글 수: 3
Christopher Stapels
Christopher Stapels 2020년 2월 7일
Is it possible that the extender is placed too far from the hub so that the extender has a poor network conncetion itself? Then it would fail to extend or repeat the network if it could not stay connected itself.
Fabio Marzocca
Fabio Marzocca 2020년 2월 7일
Unfortunately not, because I am using it the whole day with a lot of other devices (computer, SmartTV, smartphones, radio streaming, etc...).

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

커뮤니티

더 많은 답변 보기:  ThingSpeak 커뮤니티

카테고리

Help CenterFile Exchange에서 ThingSpeak에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by