Parameter TIMEOUT_MS_SERVERRESPONSE do not reflect actual system time | ESP8266 Wi-Fi Module | Forum

Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





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

Register Lost password?
sp_Feed sp_TopicIcon
Parameter TIMEOUT_MS_SERVERRESPONSE do not reflect actual system time
Avatar
andre_teprom
New Member
Forum Posts: 1
sp_UserOfflineSmall Offline
1
November 8, 2017 - 3:53 pm
sp_Permalink sp_Print sp_EditHistory

Hello guys,

I have an application running a Server and a Client together, along with the need to count coins, responding pretty much in real time, which has been a challenge. As we all know the server.handleClient() function is the bottleneck of the system, having to be instantiated very often under risk of resetting the system by watchdog timer.

So, to prevent the system from getting stuck in an overly long loop, I reduced the Timeout of the client function parameter that talks to the cloud, namely the TIMEOUT_MS_SERVERRESPONSE value was reduced from 5,000ms to 1,500ms in the ThingSpeak.h file (C:\Users\\Documents\Arduino\libraries\ThingSpeak\src).

But this seemed have not being reflected in the actual execution of the program, because when surrounding the function below, sometimes due to network issues, it takes a lot of time to get away, much more than the value that I have modified above.

Serial.println ("Start-Upload");
ThingSpeak.WriteField ( .... ); 
Serial.println ("Stop-Upload");

Perhaps it is needed to perform a correction factor multiplication on that ( I'm on a module running at 80MHz ).

 

Does anybody know hot to fix that ?

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
22 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 252

Vinod: 164

cstapels: 96

piajola: 75

vespapierre: 63

Adarsh_Murthy: 59

Newest Members:

dannymm1

KamorkasOr

GRV2903

Jusikaclaiz

Raymondpoers

ScottDus

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

 

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Administrators: Hans, lee