Making WiFiManager compatible with MySensors 2.3.2



  • Its not bug but a workaround just in case if any one is searching for solution. I was using WiFiManager with MySensors 2.3.1 for WiFi gateway and it was working fine and now i upgraded MySensors from 2.3.1 to 2.3.2 and my WiFi gateway sketch refuse to compile. for the time being workaround: You need to comment out two location in core/MyGatewayTransportEthernet.cpp
    may be there is better way but this is quick fix.

    Line 49 to 55

    /*
    #if defined(MY_GATEWAY_ESP8266) || defined(MY_GATEWAY_ESP32)
    #if !defined(MY_WIFI_SSID)
    #error ESP8266/ESP32 gateway: MY_WIFI_SSID not defined!
    #endif
    #endif
    */
    

    Line 184 to 189

    /*	(void)WiFi.begin(MY_WIFI_SSID, MY_WIFI_PASSWORD, 0, MY_WIFI_BSSID);
    	while (WiFi.status() != WL_CONNECTED) {
    		delay(1000);
    		GATEWAY_DEBUG(PSTR("GWT:TIN:CONNECTING...\n"));
    	}
    	GATEWAY_DEBUG(PSTR("GWT:TIN:IP: %s\n"), WiFi.localIP().toString().c_str());*/
    


  • Thank you.


Log in to reply
 

Suggested Topics

  • 33
  • 8
  • 5
  • 17
  • 11
  • 2

46
Online

11.4k
Users

11.1k
Topics

112.6k
Posts