{"action":"created","issue":{"url":"https://api.github.com/repos/domints/ESP-Ruuvi-Collector/issues/3","repository_url":"https://api.github.com/repos/domints/ESP-Ruuvi-Collector","labels_url":"https://api.github.com/repos/domints/ESP-Ruuvi-Collector/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/domints/ESP-Ruuvi-Collector/issues/3/comments","events_url":"https://api.github.com/repos/domints/ESP-Ruuvi-Collector/issues/3/events","html_url":"https://github.com/domints/ESP-Ruuvi-Collector/issues/3","id":429992409,"node_id":"MDU6SXNzdWU0Mjk5OTI0MDk=","number":3,"title":"OnResult with incorrect Data","user":{"login":"PAk-CatchFire","id":4245130,"node_id":"MDQ6VXNlcjQyNDUxMzA=","avatar_url":"https://avatars2.githubusercontent.com/u/4245130?v=4","gravatar_id":"","url":"https://api.github.com/users/PAk-CatchFire","html_url":"https://github.com/PAk-CatchFire","followers_url":"https://api.github.com/users/PAk-CatchFire/followers","following_url":"https://api.github.com/users/PAk-CatchFire/following{/other_user}","gists_url":"https://api.github.com/users/PAk-CatchFire/gists{/gist_id}","starred_url":"https://api.github.com/users/PAk-CatchFire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PAk-CatchFire/subscriptions","organizations_url":"https://api.github.com/users/PAk-CatchFire/orgs","repos_url":"https://api.github.com/users/PAk-CatchFire/repos","events_url":"https://api.github.com/users/PAk-CatchFire/events{/privacy}","received_events_url":"https://api.github.com/users/PAk-CatchFire/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2019-04-06T03:25:21Z","updated_at":"2020-01-03T18:21:54Z","closed_at":null,"author_association":"NONE","body":"Hello.\r\nI am trying to read a RuuviTag with your program but I get the folllowing info from BLE, where I mostly read the Data[0] field as 85 and not 99 as expected:\r\n\r\n```\r\n[D][main.cpp:183] setup(): This shows\r\n[D][BLEScan.cpp:204] start(): >> start(duration=1)\r\n[D][FreeRTOS.cpp:165] take(): Semaphore taking: name: ScanEnd (0x3ffdfda0), owner: <N/A> for start\r\n[D][FreeRTOS.cpp:174] take(): Semaphore taken:  name: ScanEnd (0x3ffdfda0), owner: start\r\n[D][BLEScan.cpp:236] start(): << start()\r\n[D][BLEAdvertisedDevice.cpp:424] setRSSI(): - setRSSI(): rssi: -61\r\n[D][BLEAdvertisedDevice.cpp:253] parseAdvertisement(): Type: 0x01 (), length: 1, data: 06\r\n[D][BLEAdvertisedDevice.cpp:253] parseAdvertisement(): Type: 0x03 (), length: 2, data: aafe\r\n[D][BLEAdvertisedDevice.cpp:453] setServiceUUID(): - addServiceUUID(): serviceUUID: 0000feaa-0000-1000-8000-00805f9b34fb\r\n[D][BLEAdvertisedDevice.cpp:253] parseAdvertisement(): Type: 0x16 (), length: 22, data: aafe10f9037275752e76692f2342484155414d4b492d\r\nBLEAdvertisedDeviceCallbacks:\r\nAdvertised Device: Name: , Address: df:4c:f2:f3:25:8d, serviceUUID: 0000feaa-0000-1000-8000-00805f9b34fb \r\nData:\r\n85\r\n0\r\n0\r\n[D][BLEScan.cpp:106] handleGAPEvent(): Ignoring df:4c:f2:f3:25:8d, already seen it.\r\n[W][BLEScan.cpp:78] handleGAPEvent(): ESP_GAP_SEARCH_INQ_CMPL_EVT\r\nDumping: \r\n[D][BLEScan.cpp:287] dump(): >> Dump scan results:\r\n[D][BLEScan.cpp:289] dump(): - Name: , Address: df:4c:f2:f3:25:8d, serviceUUID: 0000feaa-0000-1000-8000-00805f9b34fb\r\n BLE devices: 1\r\nScan done!\r\n```\r\n\r\nIs there anything I can do?\r\nThank you"},"comment":{"url":"https://api.github.com/repos/domints/ESP-Ruuvi-Collector/issues/comments/570655076","html_url":"https://github.com/domints/ESP-Ruuvi-Collector/issues/3#issuecomment-570655076","issue_url":"https://api.github.com/repos/domints/ESP-Ruuvi-Collector/issues/3","id":570655076,"node_id":"MDEyOklzc3VlQ29tbWVudDU3MDY1NTA3Ng==","user":{"login":"Quas7","id":1175755,"node_id":"MDQ6VXNlcjExNzU3NTU=","avatar_url":"https://avatars1.githubusercontent.com/u/1175755?v=4","gravatar_id":"","url":"https://api.github.com/users/Quas7","html_url":"https://github.com/Quas7","followers_url":"https://api.github.com/users/Quas7/followers","following_url":"https://api.github.com/users/Quas7/following{/other_user}","gists_url":"https://api.github.com/users/Quas7/gists{/gist_id}","starred_url":"https://api.github.com/users/Quas7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quas7/subscriptions","organizations_url":"https://api.github.com/users/Quas7/orgs","repos_url":"https://api.github.com/users/Quas7/repos","events_url":"https://api.github.com/users/Quas7/events{/privacy}","received_events_url":"https://api.github.com/users/Quas7/received_events","type":"User","site_admin":false},"created_at":"2020-01-03T18:21:54Z","updated_at":"2020-01-03T18:21:54Z","author_association":"CONTRIBUTOR","body":"I fiddelt around with my ruuvis lately and made this collector ID aware to process multiple ruuvis and not pushing all in one DB together. \r\n\r\nWhile doing this I noticed, that the issue from salleq is most likely just a change of the pointer content with by a second update. I have around 40 BT devices around my place and the pointer content gets updated quite often even while doing only a if-else compare on the esp32. \r\n\r\nI therefore copy the pointer with its content to a second pointer for further processing first. Another way would be disabling the BT updates after finding a valid ruuvi manufacturer ID and enabling it afterwards - maybe this is a bit better.\r\n\r\nI will upload my code after commenting it a bit more.\r\n\r\nAlso note, that this kind of data transmission from ruuvi tags has no integrity checking at all by design afaik."}}
{"actor":{"display_login":"Quas7"}}