{"action":"closed","issue":{"url":"https://api.github.com/repos/opendata-stuttgart/sensors-software/issues/233","repository_url":"https://api.github.com/repos/opendata-stuttgart/sensors-software","labels_url":"https://api.github.com/repos/opendata-stuttgart/sensors-software/issues/233/labels{/name}","comments_url":"https://api.github.com/repos/opendata-stuttgart/sensors-software/issues/233/comments","events_url":"https://api.github.com/repos/opendata-stuttgart/sensors-software/issues/233/events","html_url":"https://github.com/opendata-stuttgart/sensors-software/issues/233","id":343776816,"node_id":"MDU6SXNzdWUzNDM3NzY4MTY=","number":233,"title":"Potential bug in BME280 code ","user":{"login":"vossilius","id":23253942,"node_id":"MDQ6VXNlcjIzMjUzOTQy","avatar_url":"https://avatars2.githubusercontent.com/u/23253942?v=4","gravatar_id":"","url":"https://api.github.com/users/vossilius","html_url":"https://github.com/vossilius","followers_url":"https://api.github.com/users/vossilius/followers","following_url":"https://api.github.com/users/vossilius/following{/other_user}","gists_url":"https://api.github.com/users/vossilius/gists{/gist_id}","starred_url":"https://api.github.com/users/vossilius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vossilius/subscriptions","organizations_url":"https://api.github.com/users/vossilius/orgs","repos_url":"https://api.github.com/users/vossilius/repos","events_url":"https://api.github.com/users/vossilius/events{/privacy}","received_events_url":"https://api.github.com/users/vossilius/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-07-23T20:07:47Z","updated_at":"2018-07-24T18:17:59Z","closed_at":"2018-07-24T18:17:59Z","author_association":"NONE","body":"What I try to accomplish is to port your code (NRZ-2018-103) to Wemos D1 mini Pro due to the external antenna it has. I have successfully moved SDS011 and DHT22 to other ports in order to free up the I2C port for the BME280 (ext_def.h). \r\n\r\nThe BME280 breakout board I use is not from Adafruit. Using an I2C scanner code it finds the BME280 connected to the I2C pins freed up above.\r\n\r\nUsing Adafruit's BME280test.ino (modified onto the Wemos D1 mini I2C ports and sensor address 0x76) I can access the sensor and readout data only if I do the modification suggested in Adafruit_BME280.cpp [here](http://davidstein.cz/2017/09/30/arduino-bme280-could-not-find-a-valid-bme280-sensor-solved/). (see 2.1, 2.2; I will come back to this modification further down.)\r\n\r\nFirstly, in NRZ-2018-103 I noticed that the I2C pins of the nodeMCU are hardcoded defeating the pin declaration in ext_def.h: \r\n`Wire.begin(D3, D4);`\r\nSo, I changed this into \r\n`Wire.begin(BME280_PIN_SDA, BME280_PIN_SCL);`\r\nonly to find the code 'hangs' after the debug output \r\n`...`\r\n`Read DHT...`\r\n`Read BME280...`\r\n`Trying BME280 sensor on 76`\r\nBei 'hang' I mean nothing happens after this output.\r\n\r\nFrom here, I tried two ways:\r\n\r\na) If I don't do the modification above, NRZ-2018-103 does not find the sensor on 0x76 at all (even though the I2C scanner code mentioned above confirms it is there).\r\n\r\nb) If I don't command out the `return false;` as per the modification but put `return true;` instead, NRZ-2018-103 DOES NOT HANG after `Trying BME280 sensor on 76` but now only returns zero values when later reading the sensor data. Now, counterchecking Adafruit's BME280test.ino again it only returns zero values, too.\r\n\r\nNow I am stuck. To summarize, I can make my BME280 sensor works on the I2C pins of the Wemos D1 mini Pro using the Adafruit library but not in NRZ-2018-103. I can't help but conclude it's some bug in NRZ-2018-103. Or else, any idea how to solve this?"}}
{"actor":{"display_login":"vossilius"}}