iotcreators.com web
    • Login
    • Search
    • forum.iotcreators.com
    • docs.iotcreators.com
    • Tags
    • Popular
    • Recent
    • Register

    SIM7020E MQTT connection error

    Hardware
    mqtt sim7020e
    2
    2
    20
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      Gayan8090 last edited by

      Hello everybody,

      I am trying to connect to public MQTT by using AT+CMQNEW command, but it always return ERROR. Connection to network looks fine to me.

      Here is from the output logs:

      AT+CGDCONT?
      +CGDCONT: 1,"IP","scs.telekom.tma.iot","11.0.0.154",0,0,0,,,,0,,0,,0
      
      OK
      
      AT+CDNSCFG?
      PrimaryDns: 114.114.114.114
      SecondaryDns: 119.29.29.29
      
      OK
      
      AT+CMQNEW="test.mosquitto.org",1883,12000,1024
      ERROR
      
      AT+CMQNEW="test.mosquitto.org","1883",12000,1024
      ERROR
      

      I also try to ping some DNS address 8.8.8.8, but got some weird response.

      AT+CIPPING="8.8.8.8"
      OK
      +CIPPING: 1,8.8.8.8,100,0
      +CIPPING: 2,8.8.8.8,100,0
      +CIPPING: 3,8.8.8.8,100,0
      +CIPPING: 4,8.8.8.8,100,0
      

      I am not sure if there is something wrong. Can you please give me some suggestions?

      Thank you very much.

      1 Reply Last reply Reply Quote 0
      • M
        MarcoPeli iotcreators.com team last edited by

        hi @Gayan8090 , to connect to servers outside iotcreators ones, please use apn “internet.gma.iot”.
        APN “scs.telekom.tma.iot” is only for accessing iotcreators sevices.

        Thank you very much,
        Best Regards
        Marco Peli

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post