Error -304 in writeFields() | ThingSpeak API | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Error -304 in writeFields()
No permission to create posts
January 31, 2020
5:08 am
Avatar
fmarzocca

Silver
Members
Forum Posts: 18
Member Since:
July 24, 2018
sp_UserOfflineSmall Offline

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).

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 );

How can I improve communication?

February 4, 2020
3:53 pm
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 815
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

This usually means you have lost the WiFi connection temporarily. You could consider relocating the device or using a larger antenna.

FYI, MATLAB answers is now the preferred location for ThingSpeak Community support.

February 7, 2020
9:08 am
Avatar
fmarzocca

Silver
Members
Forum Posts: 18
Member Since:
July 24, 2018
sp_UserOfflineSmall Offline

cstapels said

FYI, MATLAB answers is now the preferred location for ThingSpeak Community support.  

Thank you, I'll switch there.

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

Tsfjacek, raji, ak71vie, dikshakakade, kainat, sachintour7

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457