Product Info

NTXEmbeddedWM18xAPI
10
NTX_LC_ACTIVITY
Example:
NTX_LC_ACTIVITY,{date_time},{activity_id},{group}[,{data_1_name},{data_1_type},{data_1_value},
{data_2_name},{data_2_type},{data_2_value},…,{data_n_name},{data_n_type},{data_n_value}]
Response:None
{date_time}ifthisactivityislive/realtimedatasend‐1.
Ifthisisofflinedata,meaningstored,the{date_time}mustbeintheformof
{yyyy}{mm}{dd}T{hh}:{mm}:{ss}Z
%d%02d%02dT%02d:%02d:%02dZ
AndalldatesandtimesmustbeinGMT/UTD.
{activity_id}integertheidassignedintheMatrixfiletotheeventyouarereporting
{group}integer‐eachactivityisassignedtoagroupintheMatrixFile.Youmustsendthegroup
associatedwiththeactivity_idorthedatamaynotproperlydisplayinLet’sCook.
{data_x_name}string‐thenameofthedatayouaresendingforthisactivity.
{data_x_type}string‐thetypeofdatavalueyouaresending.Possiblevaluesareint,str,bool,dec
{data_n_value}variousthevalueassociatedwiththedata_n_name
Activitiesaresingleeventsthathappenonthedevicethatyouwanttorecordintheclouddata.
ExamplesofActivitiesmightbethedevicebeingturnedon,adooropening,acookstarting,amotor
comingon,atemperaturehittingathreshold,thevolumebeingchanged,ortheusernavigatingtoa
certainscreen.Activitiescanhavedataassociatedwiththemthatisthendisplayedinthecloud.
For
instanceiftheeventisacookstarting,youcouldsendtherecipenameorthetimewiththeevent.Ifthe
volumeischanged,youcouldsendthenewvolumeasthedata.Datacanbesimpleorcomplex.Ifyour
eventisamotorturningoff,you
couldsendthedurationitwasonandthepositionofthemotorwhenit
stopped.Activitiesshouldbeusedonlyfordiscreteactionsthatarenotlikelytohappenmanytimesa
second.
ActivityeventsshouldbesenttotheCustomerConnectCloudastheyhappen.Thedeviceshouldqueue
theactivitiesandsendthemoneatatime.Observethetimingrequirementsofthemodule.
Notes:
OnlyoneActivitycanbesentatatime
Amaximumof5setsofdatacanbesentwitheachactivity
Eachoccurrenceofanactivityshouldbesentonlyonce.Ifthesameoccurrenceof anactivityis
sentmorethanonce,evenwiththesamedatecode,itwillberecordedeachtimeasaseparate
activity.
Activitydataisoptional