• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Enhance WiFi stability

Q&A Forum › Category: ESP32 › Enhance WiFi stability
0 Vote Up Vote Down
LoetLuemmel asked 2 years ago

Dear Fellows,
I am working through the Firebase Web App book and have problems with stability of my WiFi connection:


[788650][E][WiFiClientImpl.h:468] tcpWrite(): fail on fd 48, errno: 128, "Socket is not connected"
FAILED
REASON: connection refused

Using my router, all seems to be O.K. – But I want to use a ‘free’ WiFi access point and suddenly get the error mentioned above.
Could you think of a more solid way to verify the state of WiFi-Connection?
E.g. trying to verify state of connection and reconnect in case of difficulties?
Any constructive feedback welcome,
Yours Loetluemmel

Question Tags: WiFi solid connection improve
2 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
As I mentioned in another thread:
You can take a look at Wi-Fi events.
You can create an event that listens for a disconnection and tries to reconnect.

Here’s a link to some useful tutorials: 

  • https://randomnerdtutorials.com/esp32-useful-wi-fi-functions-arduino/
  • https://randomnerdtutorials.com/solved-reconnect-esp32-to-wifi/

I hope this also helps.
Regards,
Sara

0 Vote Up Vote Down
LoetLuemmel answered 2 years ago

Thanks for your quick weekend answer, Sara!
Enjoy the day off and say ‘hello’ to Rui,
Loetluemmel

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.