You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code as is will not connect (after you update the code to the current flutter version). I assume others have worked on this. The one key area is that the nrf52 code has two characteristics so you need to use the servicesWithCharacteristicsToDiscover to make it connect. I have not take care of the overflow for the persistentFooterButtons area. In the short term I made the font smaller.
Ran on my iPhone 14 Pro and you can see the screen shot.
Here is the main problem:
The code as is will not connect (after you update the code to the current flutter version). I assume others have worked on this. The one key area is that the nrf52 code has two characteristics so you need to use the servicesWithCharacteristicsToDiscover to make it connect. I have not take care of the overflow for the persistentFooterButtons area. In the short term I made the font smaller.
![nrfdk52_uart_screenshot](https://private-user-images.githubusercontent.com/124716050/283232652-6b87094a-9001-4766-aee6-3e7d4fc1dd7a.jpeg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI2NTgwMTksIm5iZiI6MTcyMjY1NzcxOSwicGF0aCI6Ii8xMjQ3MTYwNTAvMjgzMjMyNjUyLTZiODcwOTRhLTkwMDEtNDc2Ni1hZWU2LTNlN2Q0ZmMxZGQ3YS5qcGVnP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgwMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MDNUMDQwMTU5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzhlMmNmYWZkNmM4ZGE3OTM1NDllZDRhNzg5MmVkNzFiZGZkNzQwNjNhZTE2MjgxZWEwNWM3NDFiNzEyYjhmNyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.ZuXOdeUVQQ6GMz-agJsDr7U7VbLBuFfh-flZcLw8A3E)
Ran on my iPhone 14 Pro and you can see the screen shot.
Here is the main problem:
original code:
// _currentConnectionStream = flutterReactiveBle.connectToAdvertisingDevice(
// id: _foundBleUARTDevices[index].id,
// prescanDuration: Duration(seconds: 2),
// withServices: [_UART_UUID, _UART_RX, _UART_TX],
// // withServices: [_UART_UUID],
// );
Updated code - works:
_currentConnectionStream = flutterReactiveBle.connectToDevice(
id: _foundBleUARTDevices[index].id,
servicesWithCharacteristicsToDiscover: {_UART_UUID: [_UART_RX, _UART_TX]},
connectionTimeout: const Duration(seconds: 2),
);
I did not clone the work so not sure if someone else has fixed this? I can put in a link to my github if you would like.
The text was updated successfully, but these errors were encountered: