Comments (7)
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.
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.
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.
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.
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.
It does however still seem to constantly be losing its wifi settings.
This was an issue on my side
from esp8266-vindriktning-particle-sensor.
@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)
- Control LED HOT 4
- After connecting to personal WiFi an AP is still present HOT 2
- Is ESP8266 module (not D1 mini) 5V tolerant? HOT 1
- Received message with invalid header. HOT 3
- Not an issue, you probably need to clean the sensor regularly HOT 4
- 5V mention in the README HOT 3
- Not an issue, low noise mod skews sensor results by ~50% HOT 3
- Can't re-configure D1 after initial deployment HOT 1
- No pm25, ssid, ip values on esp01s
- Not Issue - I need help with code
- Set OTA password HOT 1
- The value does not fall below 200 HOT 4
- Web interface problem HOT 4
- The sensor measure always 0 ug/mc! HOT 3
- Embarrasingly stuck HOT 5
- I don't have MQTT But I need help. HOT 2
- Not an Issue ! juste Topic Name HOT 2
- Seeing odd values on sensor UART
- No mqtt topic is visible HOT 1
- How to See the Data in an App ? & Simple Wiring to ESP8266 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp8266-vindriktning-particle-sensor.