espressif / esp-rainmaker

ESP RainMaker Agent for firmware development
Apache License 2.0
432 stars 145 forks source link

Confirming Node Association Failed (MEGH-3924) #189

Closed UserOfSpace closed 1 year ago

UserOfSpace commented 1 year ago

How do I fix?

shahpiyushv commented 1 year ago

@UserOfSpace , do you see your device crashing and rebooting during provisioning? If yes, please #include <wifi_provisioning/manager.h> in your code and add this into the event handler

  switch (sys_event->event_id) {
    case ARDUINO_EVENT_PROV_INIT:
      wifi_prov_mgr_disable_auto_stop(10000);
      break;
    case ARDUINO_EVENT_PROV_CRED_SUCCESS:
      Serial.println("Stopping Provisioning!!!");
      wifi_prov_mgr_stop_provisioning();
      break;
anjalir14 commented 1 year ago

I'm having the same issue but my device is not crashing and rebooting it's just not able to connect with mqtt.