<< thingspeak_init Trity IOT Module thingspeak_plot >>

Trity IOT Module >> Trity IOT Module > thingspeak_newentry

thingspeak_newentry

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

Calling Sequence

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

See also

Authors


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