Copyright ©

Mongoose OS Forum


mgos_gcp_mqtt_connec: Time is not set, GCP connection will fail.

edudodaedudoda Brazil
edited August 2018 in Mongoose OS

Hi there,

recently I've upgraded to mongoose release version (2.4.3). Now I can register my device, connect to my wifi network but have no success connecting to google-iot.
I already add - library and can confirm that SNTP is enable. I am getting this error:

    ` mgos_sntp_query      SNTP query to
      mgos_mqtt_ev         MQTT TCP connect ok (0)
     mgos_gcp_mqtt_connec Time is not set, GCP connection will fail. Set the time or make sure SNTP is enabled and working.
     mgos_mqtt_ev         MQTT CONNACK 4
      mgos_mqtt_ev         MQTT Disconnect
      MQTT event handler: got 5 `

Anyone can help me?

Thanks in advance


  • Also tried to change SNTP server to or both fail with the same error. After choose another wifi network the problem has gone. Could this should be related to a specific port, DNS configuration or something else?

Sign In or Register to comment.