<< thingspeak_fieldvalues bytecode_iot_module thingspeak_plot >>

bytecode_iot_module >> bytecode_iot_module > thingspeak_newentry

thingspeak_newentry

Create a structure to store the data that is to be sent to the ThingSpeak channel.

Syntax

new_entry=thingspeak_newentry(FieldName,FieldValue)

Parameters

FieldName :

The field names (field1,..,field8,latitude,longitude,elevation,status)

FieldValue :

The data to be stored

new_entry :

The data structure

Description

This function creates a data structure to store the data that is to be sent to a ThingSpeak channel. The data structure is sent using thingspeak_update.

Examples

new_entry = thingspeak_newentry("status","New update!","field1",25)
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_fieldvalues bytecode_iot_module thingspeak_plot >>