Product Info

NTXEmbeddedWM18xAPI
3
AUTOCONNECT
TheWM18xtriestoautomaticallyconnecttoanaccesspoint.ItusesthelastgoodSSIDandpasswordit
storedtotrytoconnect.IfthelastgoodSSIDandpasswordfails,itwilltrytoconnectusingtheprevious
SSIDandpassworditstored.Themodulealwayskeeps2sets
ofSSIDandpassword,aprimaryanda
backup.Ifthemodulehasneverbeenconnectedtoanaccesspoint,itwillnottrytoautoconnect.
AbackupSSIDandpasswordisstoredsothattheSSIDandpasswordcanbechangedremotelyfromthe
CustomerConnectcloud.When
theCustomerConnectcloudsendsanewSSIDandpasswordtothe
WM18x,itisstoredinthebackupSSIDandpasswordlocation.Iftheprimaryfails,thebackupistried.If
thebackupsetsuccessfullyconnects,itismovedtotheprimarypositionandtheprimarybecomesthe
backupset.
OnlythebackupisoverwrittenthroughAPIcallsorfromdatasentfromthecloud.
Themodulewillcontinuetotrytoconnectevery5secondsorsountilitsuccessfullyconnectsoris
disabledbythedevice.
ONLINESTATUS
TheWM18xindicatesthecurrentonlinestatusofthemodulebyautomaticallysendingthefollowing
messagetoyourdevice:
NTX_ONLINE,{status}
Possible{status}values:
0
Notconnectedtoanaccesspoint
1
ConnectedtoanaccesspointbutnotconnectedtotheCustomerConnectcloud
2ConnectedtotheaccesspointandtheCustomerConnect cloud
Anytimetheonlinestatusislessthan2,anydatacommands(NTX_LC_xxx)senttotheWM18Xwillbe
discarded.TheWM18xdoesnotqueue
updatatobesent.Itistheresponsibilityofthedevicesending
thedatatotheWM18xtostoreofflinedataifitisnotconnectedifneeded.TheWM18xwillnotinform
youifthedataisbeingdiscarded.
Anytimetheconnectionstatuschanges,theWM18xwill
sendtheNTX_ONLINE,{status}message.Your
deviceshouldbelisteningforthiscommandatalltimesandshouldtakeproperaction.
TheNTX_ONLINE,0or1messagewillbesentaboutevery10seconds.Oncethestatusreachesstatus2,
thestatusmessageswillnotbesentunlessthestatuschangesorstatus
isrequested(NTX_ONLINE).
OtherAutomaticMessages
Thereareothermessagesthemodulemaysendfromtimetotime.Thesemessagesmaybesentatany
timebuttheywillnotinterruptamessage/responsesequenceinprocessunlessnotedbelow.Inother
wordsifyousendanAPIcalllikeNTX_CONFIG,theNTX_CONFIG,{}responsewillalwaysbe
thenext
messageyoucanexpecttogetback.