sidddy / flora

ESP32 BLE client for Xiaomi Mi Plant sensors
MIT License
190 stars 71 forks source link

Fix for issue #13 Failed to find data service #29

Open jvyoralek opened 4 years ago

jvyoralek commented 4 years ago

I had the same issue as described in #13 and after applying the solution mentioned in comments the problem was resolved.

So I have prepared necessary code changes to fix the issue.

MonsterD1 commented 4 years ago

Hello, after using your fix and including the BLE library mentiond I get following error with reboot:

14:40:05.436 -> Processing Flora device at 80:ea:ca:88:b3:b5 (try 2) 14:40:20.639 -> - Connection successful 14:40:23.889 -> abort() was called at PC 0x400856e1 on core 0 14:40:23.889 -> 14:40:23.889 -> Backtrace: 0x40092408:0x3ffd86b0 0x40092639:0x3ffd86d0 0x400856e1:0x3ffd86f0 0x4008570c:0x3ffd8710 0x4008585d:0x3ffd8740 0x4010d357:0x3ffd8760 0x4010635d:0x3ffd8a20 0x40103e39:0x3ffd8a70 0x4017c74e:0x3ffd8aa0 0x4014db99:0x3ffd8ac0 0x4015394a:0x3ffd8ae0 0x401516a8:0x3ffd8b00 0x4015189a:0x3ffd8b20 0x4018c37d:0x3ffd8b60 0x40152645:0x3ffd8df0 0x4016f57e:0x3ffd8e10 0x4016fad2:0x3ffd8e50 0x4016faa7:0x3ffd8e70 0x4016fc7b:0x3ffd8e90 0x401541cd:0x3ffd8eb0 0x4018c3ae:0x3ffd9150 0x4018c931:0x3ffd93e0 0x4018d3ca:0x3ffd9440 0x4014ecee:0x3ffd9470 0x4014f192:0x3ffd9490 0x4015a8cf:0x3ffd94b0 0x4014d8ac:0x3ffd94e0 0x4014db12:0x3ffd9500 0x4008eb51:0x3ffd9530 14:40:23.935 -> 14:40:23.935 -> Rebooting... 14:40:23.935 -> ets Jun 8 2016 00:22:57 14:40:23.935 -> 14:40:23.935 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) 14:40:23.935 -> configsip: 0, SPIWP:0xee 14:40:23.935 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 14:40:23.935 -> mode:DIO, clock div:1 14:40:23.972 -> load:0x3fff0018,len:4 14:40:23.972 -> load:0x3fff001c,len:1216 14:40:23.972 -> ho 0 tail 12 room 4 14:40:23.972 -> load:0x40078000,len:9720 14:40:23.972 -> ho 0 tail 12 room 4 14:40:23.972 -> load:0x40080400,len:6352 14:40:23.972 -> entry 0x400806b8

any idea why? regards Gernot