<< thingspeak_plot bytecode_iot_module ts2sci >>

bytecode_iot_module >> bytecode_iot_module > thingspeak_update

thingspeak_update

Update a Thingspeak Channel

Syntax

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(channelID,'private',new_entry,"writekey","")
get_entry = thingspeak_fieldvalues(channelID,'private',"","readkey",1,"results",1,"status",%t)

See also

Authors


Report an issue
<< thingspeak_plot bytecode_iot_module ts2sci >>