-->
Page 3 of 4

Re: sleep for wifi repeater

PostPosted: Mon Feb 12, 2018 5:07 pm
by hortplus
I'm trying but i can't connect to port 7777. Here is my code:

// Use WiFiClient class to create TCP connections
WiFiClient client;
const int httpPort = 7777;
if (!client.connect(host, httpPort)) {
Serial.println("connection failed");
return;
}

Any reason you can think why i cant connect?

Re: sleep for wifi repeater

PostPosted: Mon Feb 12, 2018 5:32 pm
by martin_g
You are connected with the AP of the repeater and host is "192.168.4.1"?

Re: sleep for wifi repeater

PostPosted: Mon Feb 12, 2018 5:51 pm
by hortplus
martin_g wrote:You are connected with the AP of the repeater and host is "192.168.4.1"?


I'm on another board attaching to the nodemcu wifi repeater called MyAP. How do i send telnet type data to it?

Re: sleep for wifi repeater

PostPosted: Mon Feb 12, 2018 5:58 pm
by martin_g
SImply connect via TCP port 7777 and send data.

If you are on a Linux box connect to MyAP and just try it:
Code: Select allnc 192.168.4.1 7777