MQTT losing data | 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
MQTT losing data
No permission to create posts
July 4, 2017
2:45 pm
Avatar
MarcFinns

Silver
Members
Forum Posts: 10
Member Since:
December 9, 2016
sp_UserOfflineSmall Offline

Hi, i have an ESP8266 thing that has been flawlessly logging data for months, one data point per minute.

However I recently realised that it is now skipping quite a lot of points, sometimes going for 8-10 minutes without logs.

I tried the following:

1) stripped down the code to the bare minimum, no difference

2) I eventually even tried the Arduino example on the thingspeak site, it behaves exactly the same

3) I recorded the traffic with tcpdump/wireshark. It appears that all is in order, flawless TCP conversation

My conclusion is that ThingSpeak MUST have changed something on the server side.

Anyone experiencing the same?

July 7, 2017
10:43 am
Avatar
JasonW

MathWorks
Members
Forum Posts: 28
Member Since:
October 21, 2016
sp_UserOfflineSmall Offline

I'm seeing some loss of data points as well, I'm looking into it.

July 8, 2017
4:41 am
Avatar
MarcFinns

Silver
Members
Forum Posts: 10
Member Since:
December 9, 2016
sp_UserOfflineSmall Offline

Please keep us posted. The loss I am seeing is in the range of 35-45%.

Let me know if you need more details. Thank you!

July 8, 2017
11:21 am
Avatar
Vinod

MathWorks
Members
Forum Posts: 200
Member Since:
May 1, 2016
sp_UserOfflineSmall Offline

Marc,

Thank you for reporting the issue. We are working to identify a fix and will post when it is resolved.

While we work to resolve this is it possible to switch your device to use the REST API?

Take a look at this example on how to use the REST API to do bulk updates. It has the added benefit that you may be able to send your device to sleep between sending data to the server, potentially extending the battery life for battery powered devices.

-Vinod

August 9, 2017
3:26 pm
Avatar
JasonW

MathWorks
Members
Forum Posts: 28
Member Since:
October 21, 2016
sp_UserOfflineSmall Offline

Marc,

We're made some changes to the MQTT broker that will hopefully stop that behavior from happening in the future.

If you are continuing to see data loss, please let us know!

Jason

Forum Timezone: America/New_York

Most Users Ever Online: 114

Currently Online:
17 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:

celinabw2, FitoSprayscroma, LunnonGor, lancevl16, bernicenk60, veronicadq18

Administrators: Hans: 387, lee: 457