This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3235MODSF: CC3135MOD

Part Number: CC3235MODSF

Hi

I want to know AT command sequence to send data by MQTT for CC3235MODSF.

Already I am working on AWS server, MQTT protocol but with different module. Recently I have decided to move on Ti for further development. I have read  SimpleLink Wi-Fi AT Command User's Guide  for AT commands. But I am beginner in Ti so just want some guidance to know AT command sequence to send data on AWS server by MQTT. I have recently tested TCP socket.

I am using security certificates to connect  MQTT  to AWS. I also need guidance if any provision to store my certificates in inner memory of CC3235MODSF and use at the time of connection. Need guidance to know AT command sequence. Thanks in Advance.

  • Hi Sudeep,

    All of the MQTT commands are in section 6.9 of the AT Commands guide. We do not have a demo for MQTT with AT Commands though. You need to create the MQTT instance and connect before subscribing and publishing.

    The certificates you want to use must be loaded to the CC3235 file system (which is stored in serial flash) before connecting. The files can be loaded by flashing or using the commands in section 6.4. The file path to the certificate is set in AT+MqttCreate.

    Best regards,

    Sarah

  • HI Sarah,

    Thanks again.

    I have two issues in AT commands. I am not able to write file in file system and also not able to fire MQTT publish command properly.

    I am giving here how I am firing AT commands using to publish on Topic,

    AT+MqttCreate=SK-2G-358095760161990,ip4,114.143.136.66,1883,,,,,,,v3_1,1,1
    +mqttcreate:0
    OK


    AT+MqttConnect =0
    +eventmqtt:operation,connack,0
    OK


    AT+MqttPublish=0,thing/SK-2G-358095760161990,QoS0,0,6,SUDEEP
    ERROR: parse parameters,-1

    for file write I am using two commands , May be I am wrong but please rectify and guide me.

    AT+FileOpen= cacert, WRITE,1188

    AT+FileWrite=493922059,0,1,1118,CA_root data content(1188 Bytes)

  • Hello Sarah,

    MQTT problem is solved. 

    AT+MqttCreate=SK-2G-358095760161990,ip4,192.168.1.9,1883,,,,,,,v3_1,1,0
    +mqttcreate:0
    OK


    AT+MqttConnect =0
    +eventmqtt:operation,connack,0
    OK


    AT+MqttPublish=0,thing/SK-2G-358095760161990,QoS0,1,23,Hello
    OK

    I need guidance in file system that I mentioned in previous message. I have mentioned commands which is using please refer that message and guide me where I am doing mistakes 

  • Hi Sudeep,

    When you open the file, have you tried the CREATE or OVERWRITE flags? You also must close the file after writing.

    Are either of the file system commands returning errors? After you write and close and file, are you able to see it with FileGetInfo?

    Best regards,

    Sarah

  • Thanks Sarah,

    I have tried Create flag but may be not used close file. I will check today again and will connect you soon once I finish testing.