Product Info
NTXEmbeddedWM18xAPI
5
NTX_AP,{SSID},{password}
{SSID}–thenameoftheaccesspointtoconnectto.(MAX75characters)
{password}–thepasswordfortheSSID.(MAX75characters)
Example:NTX_AP,MySSIDName,MyPass#ord
Response:NTX_ONLINE,{onlinestatus} SeeNTX_ONLINEforpossiblevaluesof{onlinestatus}
Notes:
1.
EveryNTX_APcallwillcausetheWM18xtodisconnectfromthecurrentSSIDifitisconnected
andtrytoconnectusingthenewSSIDnameandpassword.
2.
ThepreviousSSIDandpasswordwillberetained.IftheWM18xconnectstothenewSSID,the
oldSSIDandpasswordwillbecomethebackup.IftheWM18Xdoesnotconnecttothenew
SSID,thenewSSIDandpasswordwillbestoredasthebackupSSIDand password.
3.
MakingacalltoNTX_APwilltriggeratleastoneNTX_ONLINEmessage
4.
SendingtheNTX_APcallmorethanoncewillcauseaninterruptofanyprocessgoingon
includinganotherNTX_APcall.ItisrecommendedthatyouwaitfromtheNTX_ONLINEresponse
totheNTX_APcallbeforesendinganother.Itisfurtherrecommendedthatyoucall
NTX_CONFIGaftertheNTX_ONLINEresponse.TheStatus
intheresponsetotheNTX_CONFIG
willbeTRYINGasthemoduleworksongettingaconnectionwiththeAP.Youcanpollthe
NTX_CONFIGcalluntilthestatusisCONNECTEDorFAILED.(SeeWorkflow)
NTX_CONFIG
Example:NTX_CONFIG
Response:NTX_CONFIG,{MAC},{SSID},{ConnectStatus:IPAddress:channel},{NetworkSerial}
{MAC}=TheMACaddressofthismoduleintheformof
{SSID}=TheSSIDthatthemoduleisconnectedtooristryingtoconnectto
{ConnectStatus:IPAddress:channel}=Theconnectstatus,IPAddressifconnectedandchannel
connectedto.Possiblevaluesofconnectstatusare:
GOTIP
TRYING
FAILED
GOTIPindicatesthataDHCPaddresswasobtained.
TRYINGindicatesthatthemoduleisstilltryingtoconnecttotheaccesspoint.
FAILEDindicatesconnectiontotheaccesspointwasdeniedorfailed.