-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client not connecting to server #1
Comments
I assume you are using the v1 version of this code? Maybe the libraries have updated since I used them.
It looks like you might need to define a WiFiClient now, see this link: |
Oh, I didn't fully read what you said, sorry about that. I see you fixed the problem. Maybe you can check |
Yes both web interfaces show, but the server doesn't update. header displays "ERROR: have not got any sensor readings from device office. |
"thermostat.local.lan" doesn't bring up anythin, I use the server ip |
I don't get where these connect, all I've read use AP to connect. What am I missing? |
You are connecting all the esp to the same wifi network correct?
They shouldn't be in AP mode.
…On Wed, Apr 19, 2023 at 2:33 PM wjflier2 ***@***.***> wrote:
I don't get where these connect, all I've read use AP to connect. What am
I missing?
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQ6TYSK62INVUB6L4GHYRTXCAVWHANCNFSM6AAAAAAW7QOJ3A>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
yes |
both client and server post on their respective web pages but don't seem to talk to each other |
Are you able to ping each client yourself? Otherwise, I am not sure. |
Yes, they ping, but I don't see where the server request data from the client, or the client broadcast to the server |
Not sure if this is an issue, but I noticed this part of the code doesn't work: does by changing subnet to (255, 255, 0, 0) but then the server web page doesn't load |
looks like something with dns |
Just wanted to say thanks for your responses. I'll figure it out, good brain exercise. |
Great idea but having issues.
Error message 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url)
Changed code to:
// Declare object of class HTTPClient
HTTPClient http;
WiFiClient client;
no error, server and client both run, but no connection.
The text was updated successfully, but these errors were encountered: