My project "nodeMCU" stop connecting after v0.5.1 update

@Dmitriy

Hi
my project “nodeMCU” stop connecting after v0.5.1 update
All was OK until version v0.5.0

I am using <ArduinoOTA.h> and “fauxmoESP.h” for my Echo Dot.

[1053] Connected to WiFi
[1053] IP: 192.168.xx.xx
[1053] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.5.0 on NodeMCU

[1059] Connecting to 192.168.xx.xx
[1114] Ready (ping: 18ms).
[6115] Connecting to 192.168.xx.xx
[6130] Ready (ping: 10ms).


HTTP/1.1 200 OK
CACHE-CONTROL: max-age=86400
DATE: Mon, 22 Jun 2015 17:24:01 GMT
EXT:
LOCATION: http://192.168.xx.xx:52000/setup.xml
OPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01
01-NLS: 4445561AC5Cxxx
SERVER: Unspecified, UPnP/1.0, Unspecified
X-User-Agent: redsonic
ST: urn:Belkin:service:basicevent:1
USN: uuid:Socket-1_0-4445561AC5C600::urn:Belkin:service:basicevent:1


HTTP/1.1 200 OK
CACHE-CONTROL: max-age=86400
DATE: Mon, 22 Jun 2015 17:24:01 GMT
EXT:
LOCATION: http://192.168.xx.xx:52002/setup.xml
OPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01
01-NLS: 4445561AC5Cxxx
SERVER: Unspecified, UPnP/1.0, Unspecified
X-User-Agent: redsonic
ST: urn:Belkin:service:basicevent:1
USN: uuid:Socket-1_0-4445561AC5Cxxx::urn:Belkin:service:basicevent:1

this is my loop section

/*----------------------------------Loop--------------------------------------*/
  void loop() 
  {
    Blynk.run(); // Initiates Blynk
    ArduinoOTA.handle();
    timer.run(); // Initiates Blynk Timer
    timer1.run();
    fauxmo.handle();    
    if (mySwitch.available()) { RF315();}
  }
/*----------------------------------------------------------------------------*/

now I returned back to v0.5.0
any suggestion ?

A lot of discuss were taking place in last few days, yet still it is somehow easier to write, than to read… Port has changed from 8442 to 80 (or is it 8080?)

For local servers.

1 Like

Ah yes… At least for me the easiest (temporary) solution was to change it back to 8442, till all devices will receive “update”
#define BLYNK_DEFAULT_PORT 8442

You need to use 8080. 8442 will be dropped with next update for the local server.

Thanks

OK, then I will… I haven’t been reading that far, and 8442 is a temporary fix for other library “tweaks” last night :wink: To be honest I was confused for about 20 minutes too before I reminded myself about changes in 0.5.1 - till yesterday I was using 0.4.8.

OK now
I just added the 8080 port to my local server

Blynk.begin(AUTH, WIFI_SSID, WIFI_PASS, LOCAL_SERVER ,8080);

my setup

   /*--------------------------------Setup --------------------------------------*/
      void setup() {
        WiFi.mode(WIFI_STA);  // Set WIFI module to STA mode
      Serial.begin(115200);   // See the connection status in Serial Monitor
        
      #ifdef LOCAL_SERVER
        Blynk.begin(AUTH, WIFI_SSID, WIFI_PASS, LOCAL_SERVER ,8080);
      #else
        Blynk.begin(AUTH, WIFI_SSID, WIFI_PASS, Geo_DNS_SERVER);
      #endif
        while (Blynk.connect() == false) {}
        ArduinoOTA.setHostname(OTA_HOSTNAME);
        ArduinoOTA.begin();