ESP8266 sends a constant to Thinkspeak but there are many outliers, why? | ESP8266 Wi-Fi Module | 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
ESP8266 sends a constant to Thinkspeak but there are many outliers, why?
No permission to create posts
August 25, 2017
4:36 am
Avatar
Jerry
New Member
Members
Forum Posts: 3
Member Since:
August 25, 2017
sp_UserOfflineSmall Offline

I measure the value in Arduino Pro and send it to Thinkspeak via ESP8266, but there are many outliers (stupid weird value out of range). That's why I tried send to Thinkspeak only one constant (3.33) stored directly in ESP8266 and the situation is the same. There are many outliers too, why??

....

void loop() {
if (Serial.available() >= sizeof(int)) {
float i = Serial.parseInt();
sendDataToThingspeak(3.33);
}

....

Cry

time@email.cz

August 25, 2017
3:32 pm
Avatar
cstapels
Moderator
Members


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

Can you describe what the function sendDataToThingspeak() does?  

August 31, 2017
1:01 pm
Avatar
Jerry
New Member
Members
Forum Posts: 3
Member Since:
August 25, 2017
sp_UserOfflineSmall Offline

Here you will find the whole file:       https://www.dropbox.com/s/betiilykyrnhho1/MainProduct_317961.ino?dl=0

thaks Jerry

September 11, 2017
7:34 am
Avatar
Jerry
New Member
Members
Forum Posts: 3
Member Since:
August 25, 2017
sp_UserOfflineSmall Offline

Hello,

I tried another piece of ESP8266 but the result is still bad. I attach a link where I keep doing it all the time. Thus Thinkspeak is inapplicable.
Thank you for your advice. Jerry

https://thingspeak.com/channels/87384

September 12, 2017
1:00 am
Avatar
rw950431

Top
Members
Forum Posts: 261
Member Since:
January 30, 2014
sp_UserOfflineSmall Offline

For those of us not willing to download random files from dropbox can you post the complete code of the sendDataToThingspeak() function? Did you try the official thinkspeak package (https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/)  Its possible your API call is failing in some way that you are not detecting.

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
13 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 261

Vinod: 196

piajola: 85

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 5703

Moderators: 0

Admins: 2

Forum Stats:

Groups: 4

Forums: 17

Topics: 1313

Posts: 4565

Newest Members:

harriettlf60, ShaToow, Aleftinfenny, DiaBentee, hugo11dom@gmail.com, Pisaruk530

Administrators: Hans: 387, lee: 457