[SOLVED] Local Server with ESP8266 serial?

I’m having trouble getting my esp8266/ Arduino nano setup working with a local server. The phone/ local server work well together, but the link between esp and local server does not.

I suspect it is in my arduino sketch. I’m using the example esp8266 serial sketch. everything works fine with the cloud server when I do Blynk.begin like this:

Blynk.begin(auth, wifi,“SSID”, “pass”);

But when I try the local server like this:

Blynk.begin(auth, wifi, “SSID”," pass"," IPAddress(XXX,XXX,XXX,XXX)");

Blynk does not find the esp/ Arduino. It does connect to wifi, though.
Of course, I am using the correct respective authorizations.

Am I using the Blynk.begin for serial properly? (with the quotation marks?)

No you don’t, but it’s not really clear in the documentation, try this:

Blynk.begin(auth, wifi, "SSID", "pass", "ipaddress", port);

I think port is 8442 for non-SSL hardware. Please note the absence of the quote for port parameter.

Wow. I would have never figured that out. Thanks so much!

No joy so far-
Here is my code- (no router password at the moment- the 192.168.5.200 is static on the PC with my server and the address set up in Blynk phone app)

Blynk.begin(auth, wifi, “RoboticsRouter”, “”,“192,168,5,200”,8442);

Tried ports 8441 and 8443- no difference- I get the “Your Nano is not in network” message on all I tried

Does that Blynk.begin look like it should work?

Should be

IPAddress(192,168,5,200)

Port not needed.

When I use
IPAddress(192,168,5,200)
without the quotes I get compile error:

use of undeclared identifier 'IPAddress

I’m using CodeBender

The IP has to have dots, not comma’s.

1 Like

Bingo!

This is the line that works:

Blynk.begin(auth, wifi, “RoboticsRouter”, “”,“192.168.5.200”,8442);

1 Like

4 posts were split to a new topic: Local Server error “The command “openssl” is either misspelled or could not be found”