{"action":"created","issue":{"url":"https://api.github.com/repos/BoschSensortec/BME280_driver/issues/43","repository_url":"https://api.github.com/repos/BoschSensortec/BME280_driver","labels_url":"https://api.github.com/repos/BoschSensortec/BME280_driver/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/BoschSensortec/BME280_driver/issues/43/comments","events_url":"https://api.github.com/repos/BoschSensortec/BME280_driver/issues/43/events","html_url":"https://github.com/BoschSensortec/BME280_driver/issues/43","id":305378547,"number":43,"title":"Bme280  Bmp080","user":{"login":"comarius","id":8059009,"avatar_url":"https://avatars3.githubusercontent.com/u/8059009?v=4","gravatar_id":"","url":"https://api.github.com/users/comarius","html_url":"https://github.com/comarius","followers_url":"https://api.github.com/users/comarius/followers","following_url":"https://api.github.com/users/comarius/following{/other_user}","gists_url":"https://api.github.com/users/comarius/gists{/gist_id}","starred_url":"https://api.github.com/users/comarius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/comarius/subscriptions","organizations_url":"https://api.github.com/users/comarius/orgs","repos_url":"https://api.github.com/users/comarius/repos","events_url":"https://api.github.com/users/comarius/events{/privacy}","received_events_url":"https://api.github.com/users/comarius/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-15T00:51:22Z","updated_at":"2018-03-17T04:26:16Z","closed_at":null,"author_association":"NONE","body":"I have 2 types of sensors, BME280 sparkfun and bmp 080\r\nI am using same i2c lib for both.\r\nThe code for both is form the samples provided.\r\n\r\nThe bmp080 shows data, while bme280 every time the program is restarted shows different data.\r\nThey sit side by side:\r\n\r\nBmp080  T: 227       P: 97619\r\nBMe280  T: -2322   P: 110000    H: 100000  \r\nAny hints ?\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/BoschSensortec/BME280_driver/issues/comments/373893428","html_url":"https://github.com/BoschSensortec/BME280_driver/issues/43#issuecomment-373893428","issue_url":"https://api.github.com/repos/BoschSensortec/BME280_driver/issues/43","id":373893428,"user":{"login":"comarius","id":8059009,"avatar_url":"https://avatars3.githubusercontent.com/u/8059009?v=4","gravatar_id":"","url":"https://api.github.com/users/comarius","html_url":"https://github.com/comarius","followers_url":"https://api.github.com/users/comarius/followers","following_url":"https://api.github.com/users/comarius/following{/other_user}","gists_url":"https://api.github.com/users/comarius/gists{/gist_id}","starred_url":"https://api.github.com/users/comarius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/comarius/subscriptions","organizations_url":"https://api.github.com/users/comarius/orgs","repos_url":"https://api.github.com/users/comarius/repos","events_url":"https://api.github.com/users/comarius/events{/privacy}","received_events_url":"https://api.github.com/users/comarius/received_events","type":"User","site_admin":false},"created_at":"2018-03-17T04:26:16Z","updated_at":"2018-03-17T04:26:16Z","author_association":"NONE","body":"I really appreciate the prompt response.\r\nThey just wrappers from c++ class to adding a this pointer, but they pass all parameters here\r\n\r\nHere is the call chain from Bme280 Class - > Base class and  -> i2c class. Is the same for write.\r\n(I add to dev structure 'this', as well to read/write functors, so I can C++-it...)\r\n\r\n \r\n     int8_t Bme_280::_iread(uint8_t device_addr,\r\n                                 uint8_t register_addr,\r\n                                 uint8_t *register_data,\r\n                                 uint16_t read_length, void* pthis)\r\n        {\r\n            if(((Bme_280*)pthis)->_ok){\r\n                return ((Bme_280*)pthis)->busread(register_data, read_length, register_addr);\r\n            }\r\n            return 0;\r\n       }\r\n    // base class\r\n\r\n    bool    WireBus::busread(uint8_t* buff, int len, int anyreg)\r\n    {\r\n        return _pi2c->readBlock(anyreg, buff, len);\r\n    }\r\n\r\nWhere readBlock  / writeBlock are in this library.\r\nhttps://github.com/yigityuce/BlackLib/blob/master/v3_0/BlackI2C/BlackI2C.cpp\r\n\r\nto writeBlock / readBlock\r\n\r\n  \r\n   "}}
{"actor":{"display_login":"comarius"}}