GithubHelp home page GithubHelp logo

AP mode not working about esp8266-react HOT 15 CLOSED

uncodead avatar uncodead commented on August 22, 2024
AP mode not working

from esp8266-react.

Comments (15)

rjwats avatar rjwats commented on August 22, 2024 1

For reference I am on Espressif 8266 v2.2.2 and my packages are in my user folder:

C:\Users\Rick\.platformio\packages

and

C:\Users\Rick\.platformio\platforms

So re-installing platformio may not cause these to be re-fetched. If you delete them platformio will refetch them on build (note: delete, not rename!)

from esp8266-react.

rjwats avatar rjwats commented on August 22, 2024

Hi Bruno,

Your project is looking really good!

Are you having this problem with the master branch? I made a series of recent fixes, tweaks and upgrades. One of them addressed an issue around the access point. The problem was due to WiFi channel switching when the ESP tries to reconnect, which it does continuously.

The aforementioned fix is here:

https://github.com/rjwats/esp8266-react/blob/master/src/WiFiSettingsService.cpp

Let me know if this helps.

from esp8266-react.

uncodead avatar uncodead commented on August 22, 2024

Thank you @rjwats I put your name on the credits!

Unfortunately I could not match my version with your master. I'll have to program myself to get the master version... :/

from esp8266-react.

rjwats avatar rjwats commented on August 22, 2024

Setting this repo as an upstream origin might help you with your merge process:

https://help.github.com/en/articles/configuring-a-remote-for-a-fork

from esp8266-react.

uncodead avatar uncodead commented on August 22, 2024

Do you know this problem:

image

it's your current master.

from esp8266-react.

rjwats avatar rjwats commented on August 22, 2024

Thanks for pointing that out Bruno. It looks like esp32's arduino core implements the end function, esp8266 handles this in the destructor instead. Resolved in master with an if-def.

from esp8266-react.

rjwats avatar rjwats commented on August 22, 2024

Did you make any progress merging the AP fix into your project?

If it's of interest the new implementation of WiFiSettingsService allows you to assign an empty SSID in wifiSettings.json which will effectively disable the WiFi station mode. This allows the Access Point to run totally uninterrupted. The fallback (when unable to connect) is to control the reconnect frequency which is done in the class and controlled by WIFI_RECONNECTION_DELAY in WiFiSettingsService.h it should be fairly easy to backport these changes into your application. Let me know if you need any more info.

from esp8266-react.

uncodead avatar uncodead commented on August 22, 2024

Hi rjwats, im working on merge your master with my project version (hard work).

I have an other problem in your master:

image

and

image

from esp8266-react.

rjwats avatar rjwats commented on August 22, 2024

I'll take another look at master this evening, though it seemed to be behaving fine last night. In the mean time, you might try a clean rebuild by running:

'pio run -t clean'

I removed what I assumed was a redundant reference to the esp's WiFi library from the main class which may have cause this new issue, will investigate later.

from esp8266-react.

uncodead avatar uncodead commented on August 22, 2024

yes, i got a new environment (platformio and vscode) to build your master and got this erro.

I think that erro is related to #ifndef ESP8266 i dont kknow where in workspace it was configured as true. To by pass this error i need to comment this lines. I dont know why...

from esp8266-react.

rjwats avatar rjwats commented on August 22, 2024

Hi Bruno,

Odd, I have just pulled a fresh copy from master and it's builds fine under Windows for me.

The first error, INADDR_ANY not resolving, shouldn't be an issue as as WiFiSettingsService.h pulls in IPAddress.h from the Arduino core package which provides this.

The "ESP8266" define is configured by platformio based on your platform, in this situation it is behaving correctly. You are building on the esp8266 core, which provides 'strcpy_P(dest, src)' as part of string.h In this case the function is not provided by the DateStrings library because the Arduino core provides it already.

You should see what I mean if you find the following file on your file system (assuming it is there!):

C:\Users\Rick\.platformio\packages\framework-arduinoespressif8266\tools\sdk\libc\xtensa-lx106-elf\include\sys\string.h

If you are getting this issue on your other projects too I suggest your packages are corrupt in some way and need re-installing.

from esp8266-react.

uncodead avatar uncodead commented on August 22, 2024

For reference I am on Espressif 8266 v2.2.2 and my packages are in my user folder:

C:\Users\Rick\.platformio\packages

and

C:\Users\Rick\.platformio\platforms

So re-installing platformio may not cause these to be re-fetched. If you delete them platformio will refetch them on build (note: delete, not rename!)

I was with old ESP8266 platform version... i got the latest and solve the issue.

Now im working on update my arduino code and i'll use my version of interface...

Mabe you can consider enable/disable the JWT auth (my project doesnt needs)

Thanks!

from esp8266-react.

rjwats avatar rjwats commented on August 22, 2024

Yes, that's a reasonable feature request. That should be opened as a separate issue, there's 3 things getting discussed here.

from esp8266-react.

rjwats avatar rjwats commented on August 22, 2024

Hi Bruno,

I'm closing this issue and opening another one to track the feature request: #39

Please re-open if you are still having the AP issues.

from esp8266-react.

uncodead avatar uncodead commented on August 22, 2024

from esp8266-react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.