Product Info

NTXEmbeddedWM18xAPI
14
{data_1_type}stringthetypeofthedata_x_valueabouttobesent
{data_1_value}thevalue
ThestateofthedeviceshowsuponthefrontandbackofthelivecardinLet’sCook.Itissentonlyifthe
deviceisbeingactivelymonitoredandisnotstoredinLet’sCook.Thedeviceshouldalwayssenditwhen
thestatechanges
tothemodulebutitwillonlybesenttothecloud ifthedeviceisbeingmonitored.
BecauseNetworkdoesnotstorethestate,ifyouchangescreensorrefreshthecloud,thestatein
NetworkmayreverttoSTANDBY.Thisisthedefaultstateifithasnot
receivedastaterecently.We
suggestyousendthecurrentstateasoftenasmakessense.Itshouldneverbesentmoreoftenthan
onceasecond.Amorereasonableperiodisabout onceevery10seconds.
Notes:
Notallstateshavedatasoitisshownasoptional.
IfyousentastatethatisidentifiedintheMatrixfileasneedingdata,withoutthedata,thestate
maynotdisplayproperlyinLet’sCook.
Maximumnumberofdatasetsperstateis10
Ifyoualsowanttocollectstatechangesasactivitiesyouneedtosendanactivityaswellasa
stateAPIcalltothemodule.
NTX_LC_STATUS
RespondswiththestatusoftheconnectiontotheNetworkcloud.
Example:NTX_LC_STATUS
Response:NTX_LC_STATUS,{lc_status}
{lc_status}=0NotconnectedtotheNetworkMQTTbroker
{lc_status}=1ConnectedtotheNetworkMQTTbroker
Notes:
1.
Aconnectionstatusof1maymeanthatthedeviceisfullyconnectedormaybeinpendingor
approvedbutnotputintoagroup.Themoduledoesnotknowwhichofthesemodesthedevice
isinonlythatitisconnectedordisconnectedfromtheNetworkserver.
2.
UsetheNetworkonlineportaltodeterminethestatusofthedeviceconnection.