How to use timestamp? | MATLAB IoT Analytics | Forum

The ThingSpeak community site has been upgraded to a new site. This site is currently in read-only mode. You can ask questions or post and read discussions on the new site.

Please consider registering

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
How to use timestamp?
No permission to create posts
December 27, 2018
5:36 pm
New Member
Forum Posts: 1
Member Since:
December 27, 2018
sp_UserOfflineSmall Offline

My code:

[data, time] = thingSpeakRead(channelID,'Fields',[1],'NumPoints',3);
thingSpeakWrite(channelID1, data,'Fields',[3],'TimeStamp',time, 'WriteKey', writeAPIKey);

URL is incorrectly formed, or the requested feature is not supported in this version of ThingSpeak.

How to rewrite time? What am I doing wrong?

January 2, 2019
9:52 am

Forum Posts: 885
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

The message comes because you are attempting to write multiple data with similar timestamps to the same channel. ThingSpeak requires unique timestamps within a channel. We are aware of this poorly phrased error message and are working to improve it.

You can either add time to the timestamps you are writing, or delete the existing data before writing new timestamps.

In the command you wrote above, you need to supply time stamps because you are writing multiple points at once.

If you write only one point at a time, you do not need to supply timestamps at all and ThingSpeak will assign the system time at the time of writing.

If you split the write into three operations, be sure to add some time in between writes to make sure not to violate the update frequency (15 s for free, 1 s for paid licenses.)

Forum Timezone: America/New_York

Most Users Ever Online: 166

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

estebanmateo93, mikewrite, onlinebusiness, winzy99, Zark_zeugan, StefanWi

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457