thingSpeakWrite
Write data to ThingSpeak channel
Syntax
Description
thingSpeakWrite(
writes the data to the specified channel. The Write API
key is specified as a comma-separated pair consisting of channelID
,data
,'WriteKey','channel
write API key
')'WriteKey'
and a
character vector or string representing the channel write key.
thingSpeakWrite(___,
uses additional options specified by one or more Name,Value
)Name,Value
pair
arguments.
returns the response provided by the ThingSpeak™ server on successful completion of the write operation.response
= thingSpeakWrite(___)
Note
If you are writing a table of data using thingSpeakWrite
and
you have a React associated with this channel, your React is triggered only once when
the Condition Type matches the Condition, even
if the Condition is matched more than once.
Examples
Input Arguments
Output Arguments
Limitations
All timestamps must be unique. You cannot write new data with timestamps that match existing data in the channel.
The allowed update frequency for a channel is limited based on your license type. See Frequently Asked Questions and How to Buy for specific information. Updates with multiple entries, such as in a table or timetable, are limited to the slower update frequency. For users of free accounts, the number of messages in a single call to
thingSpeakWrite
is limited to 960 messages. For users of paid accounts, the limit is 14,400 messages. Attempts to publish at a rate faster than the allowed limit will return the following error: Requests are too frequent. For further information, see Limitations in the documentation.
More About
Version History
Introduced in R2019a