<< thingspeak_plot Trity IOT Module ts2sci >>

Trity IOT Module >> Trity IOT Module > thingspeak_update

thingspeak_update

Update a Thingspeak Channel

Calling Sequence

entryID=thingspeak_update(channelID,privacy,datastruct,apiWriteKey,apiReadKey)

Parameters

channelID :

ID of the channel in ThingSpeak

privacy :

Specify whether the channel is 'public' or 'private'

datastruct :

The data structure created using thingspeak_newentry

apiWriteKey :

Write API Key of the channel. The Write Key can be used as the Read API Key as well.

apiReadKey :

Read API Key of the channel.

entryID :

The entry ID

Description

Updates a ThingSpeak channel using the data structure created by thingspeak_newentry.

Examples

new_entry = thingspeak_newentry("status","New update!","field1",20)
entry_update = thingspeak_update(36637,'private',new_entry,"TDCTM28KA2RY2T8U","")
get_entry = thingspeak_fieldvalues(36637,'private',"","TDCTM28KA2RY2T8U",1,"results",1,"status",%t)

See also

Authors


Report an issue
<< thingspeak_plot Trity IOT Module ts2sci >>