trobanga / flutter_btleplug

BSD 3-Clause "New" or "Revised" License
29 stars 9 forks source link

Cannot disconnect on ios/macos #48

Open laxian opened 3 months ago

laxian commented 3 months ago

I added two buttons on each scanned item, connect and disconnect. On iOS, you can connect successfully, but you can't disconnect.

                        ElevatedButton(
                          onPressed: () {
                            print('connect...');
                            connect(id: s.id);
                          },
                          child: const Text('connect'),
                        ),
                        ElevatedButton(
                          onPressed: () {
                            print('disconnect...');
                            disconnect(id: s.id);
                          },
                          child: const Text('disconnect'),
                        ),

why?

trobanga commented 3 months ago

I can with confidence say: I don't know I've never tested it on iOS yet.

Do you use the frb2 branch? Because it's the one I am (half) actively developing on. I will make it the main branch once frb 2.0 stabilizes.

laxian commented 3 months ago

I can with confidence say: I don't know I've never tested it on iOS yet.

Do you use the frb2 branch? Because it's the one I am (half) actively developing on. I will make it the main branch once frb 2.0 stabilizes.

Yes, I'm on frb2 branch.

But this issue depends. Only happens on a few LE devices.