ESP8266 sends a constant to Thinkspeak but there are many outliers, why? | 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
ESP8266 sends a constant to Thinkspeak but there are many outliers, why?
Avatar
Jerry
New Member
Forum Posts: 3
sp_UserOfflineSmall Offline
1
August 25, 2017 - 4:36 am
sp_Permalink sp_Print

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

Avatar
cstapels

Gold
Forum Posts: 54
sp_UserOfflineSmall Offline
2
August 25, 2017 - 3:32 pm
sp_Permalink sp_Print

Can you describe what the function sendDataToThingspeak() does?  

Avatar
Jerry
New Member
Forum Posts: 3
sp_UserOfflineSmall Offline
3
August 31, 2017 - 1:01 pm
sp_Permalink sp_Print

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

thaks Jerry

Avatar
Jerry
New Member
Forum Posts: 3
sp_UserOfflineSmall Offline
4
September 11, 2017 - 7:34 am
sp_Permalink sp_Print

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

Avatar
rw950431

Forum Posts: 250
sp_UserOfflineSmall Offline
5
September 12, 2017 - 1:00 am
sp_Permalink sp_Print

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: alexparrado
16 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 250

Vinod: 142

piajola: 73

vespapierre: 63

Adarsh_Murthy: 59

cstapels: 54

Newest Members:

chrissaxon

getty

l3inbin

ossan

gbalychik

wul

Forum Stats:

Groups: 4

Forums: 17

Topics: 1242

Posts: 4315

 

Member Stats:

Guest Posters: 1

Members: 5546

Moderators: 0

Admins: 2

Administrators: Hans, lee