-->
Page 1 of 2

Connection Refused

PostPosted: Mon Jan 25, 2016 10:38 am
by ExtraSensory
Hi,

I'm using version 2.1.0-rc2 and trying to access a URL with basic authentication with username and password.
The code is exactly the example but with a different URL.
However, I am constantly getting connection refused.
The same URL in the browser, logs in properly and shows the page.

Any suggestions?
Thanks!

Re: Connection Refused

PostPosted: Mon Jan 25, 2016 11:02 am
by xtal
Did you set SSID and Password ,, other than that no clue...

Re: Connection Refused

PostPosted: Mon Jan 25, 2016 11:33 am
by ExtraSensory
Sorry. Yes, of course.

Re: Connection Refused

PostPosted: Mon Jan 25, 2016 3:48 pm
by ExtraSensory
Looking at the HTTPCLient sources, I'm trying to debug by #defining at the top of my file :

Code: Select all#define DEBUG_ESP_HTTP_CLIENT
#define DEBUG_ESP_PORT Serial
// #define DEBUG_HTTPCLIENT(...) Serial.printf( __VA_ARGS__ ) // even tried this

// rest of code...

#include <Arduino.h>

#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>

#include <ESP8266HTTPClient.h>
//....



But I cannot see any change in the output. No log statements are printed :-(

Any suggestion as to what I'm doing wrong?