GithubHelp home page GithubHelp logo

Comments (7)

enwi avatar enwi commented on May 27, 2024 1

I think both issues (#2 and #8) are related to the parseState() function, which was declared to return a bool, but did not return anywhere, which will result in undefined behaviour. This has been fixed with #9 and I think it is already working for @joelhaasnoot again.

For me running the code with the missing return statement resulted in the ESP8266 continuously printing data, which it wasn't even supposed to.

from esp8266-vindriktning-particle-sensor.

Hypfer avatar Hypfer commented on May 27, 2024 1

Thanks for figuring that out @enwi !

As I just copy-pasted most of this code from one project to another, the same issue did surface here:
Hypfer/esp8266-midea-dehumidifier@fabc012

I am somewhat surprised that the compiler didn't complain though

from esp8266-vindriktning-particle-sensor.

joelhaasnoot avatar joelhaasnoot commented on May 27, 2024

Ah, took a little longer and figure it out. Once I had downgraded to ESP8266 Board/Core version 2.7.4 it works fine.

It does however still seem to constantly be losing its wifi settings.

from esp8266-vindriktning-particle-sensor.

Hypfer avatar Hypfer commented on May 27, 2024

Huh. Interesting. Unfortunately, I can't say much about both of your issues since I honestly lack the experience.

Which version of ESP8266 Board/Core were you using before? Maybe there are breaking changes mentioned in the release notes between 2.7.4 and that version.

In any case lets hope that someone with the suitable skills reads this issue and shines some light on the problem

from esp8266-vindriktning-particle-sensor.

joelhaasnoot avatar joelhaasnoot commented on May 27, 2024

I used 3.0.1 before.
I think the issue may be timing related. It seems to be quite sensitive timing wise, see my other message.

from esp8266-vindriktning-particle-sensor.

joelhaasnoot avatar joelhaasnoot commented on May 27, 2024

It does however still seem to constantly be losing its wifi settings.

This was an issue on my side

from esp8266-vindriktning-particle-sensor.

enwi avatar enwi commented on May 27, 2024

@Hypfer C compilers can sometimes be strange. I mean I didn't even get a compiler warning, so I first thought the memcpy did something weird. But it wasn't until I tried to force the function to return by adding a return statement that the static analysis (intellisense) told me, hey you can't just return you need to return a boolean that I noticed it.

from esp8266-vindriktning-particle-sensor.

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.