Other Parts Discussed in Thread: CC3235SF, UNIFLASH
Seeking your assistance on this query from Cx:
I am using AT command example application from TI with LAUNCHXL_CC3235SF. I want to open secured socket for communication with remote server using MQTT protocol. I am using following AT commands in sequence as given below:
AT+Socket=INET,STREAM,SEC //this returns socket descriptor (normally returns as 0) and OK as response
AT+NetAPPGetHostByName=hostname,INET //hostname is the name of the server. This returns OK +netappgethostgyname:
hostname,Host IP address
AT+SetSockOpt =0,SOCKET,SECMETHOD,TLSV1_2 //This returns OK response
AT+Connect=0,INET,8883,IPAddress //IP address is Host IP address returned by previous command.
above connect command does not return any response.
If I use TCP instead of SEC in AT+Socket command then AT+Connect command does return response as OK. But If I open TCP socket then it does not receive any response from server in response my MQTT connect packet.
Can anybody let me know issue with using SEC in AT+Socket command? Is my sequence of socket opening to connect is correct
For your assistance please. Thank you.