Git Product home page Git Product logo

Comments (8)

Sunbreak avatar Sunbreak commented on July 27, 2024

It didn't find the right characteristic. Make sure you got the right UUID

public func getCharacteristic(_ characteristic: String, of service: String) -> CBCharacteristic {
let s = self.services?.first {
$0.uuid.uuidStr == service || "0000\($0.uuid.uuidStr)-\(GSS_SUFFIX)" == service
}
let c = s?.characteristics?.first {
$0.uuid.uuidStr == characteristic || "0000\($0.uuid.uuidStr)-\(GSS_SUFFIX)" == characteristic
}
return c!
}

Could you post the service discovery log?

from quick_blue.

krishnadevy57 avatar krishnadevy57 commented on July 27, 2024

**Here are logs: please help there are lot of issue in this , you can check highlighted characteristics in screenshots

centralManager:didDiscoverPeripheral nil 9B0C3D3F-3FDD-13C1-C217-2324BF12785B
centralManager:didDiscoverPeripheral nil 1CC44F1E-D218-DFC4-E8FE-81EA760E220D
centralManager:didDiscoverPeripheral nil 1CC44F1E-D218-DFC4-E8FE-81EA760E220D
centralManager:didDiscoverPeripheral nil 1CC44F1E-D218-DFC4-E8FE-81EA760E220D
centralManager:didDiscoverPeripheral nil 1CC44F1E-D218-DFC4-E8FE-81EA760E220D
centralManager:didDiscoverPeripheral nil 1CC44F1E-D218-DFC4-E8FE-81EA760E220D
centralManager:didDiscoverPeripheral nil 1CC44F1E-D218-DFC4-E8FE-81EA760E220D
centralManager:didDiscoverPeripheral nil 1CC44F1E-D218-DFC4-E8FE-81EA760E220D
centralManager:didDiscoverPeripheral nil 1CC44F1E-D218-DFC4-E8FE-81EA760E220D
centralManager:didDiscoverPeripheral nil 1CC44F1E-D218-DFC4-E8FE-81EA760E220D
centralManager:didDiscoverPeripheral nil 1CC44F1E-D218-DFC4-E8FE-81EA760E220D
centralManager:didDiscoverPeripheral nil 1CC44F1E-D218-DFC4-E8FE-81EA760E220D
peripheral: 719201F7-C5D4-1BCD-CC0D-8A36F131DA94 didDiscoverServices: nil
peripheral:didDiscoverCharacteristicsForService (180a, 2a24
peripheral:didDiscoverCharacteristicsForService (180a, 2a25
peripheral:didDiscoverCharacteristicsForService (180a, 2a27
peripheral:didDiscoverCharacteristicsForService (180a, 2a26
peripheral:didDiscoverCharacteristicsForService (180a, 2a28
peripheral:didDiscoverCharacteristicsForService (180f, 2a19
flutter: _handleServiceDiscovery 719201F7-C5D4-1BCD-CC0D-8A36F131DA94, 180a
peripheral:didDiscoverCharacteristicsForService (e5f5f000-c0ec-46ba-bd1f-b4c9f0da4208, e5f50001-c0ec-46ba-bd1f-b4c9f0da4208
peripheral:didDiscoverCharacteristicsForService (e5f5f000-c0ec-46ba-bd1f-b4c9f0da4208, e5f50003-c0ec-46ba-bd1f-b4c9f0da4208
peripheral:didDiscoverCharacteristicsForService (e5f5f000-c0ec-46ba-bd1f-b4c9f0da4208, e5f50004-c0ec-46ba-bd1f-b4c9f0da4208
peripheral:didDiscoverCharacteristicsForService (fe59, 8ec90003-f315-4f60-9fb8-838830daea50
flutter: _handleServiceDiscovery 719201F7-C5D4-1BCD-CC0D-8A36F131DA94, 180f
flutter: _handleServiceDiscovery 719201F7-C5D4-1BCD-CC0D-8A36F131DA94, e5f5f000-c0ec-46ba-bd1f-b4c9f0da4208
flutter: _handleServiceDiscovery 719201F7-C5D4-1BCD-CC0D-8A36F131DA94, fe5
Screenshot 2022-04-26 at 8 27 26 PM
9

from quick_blue.

Sunbreak avatar Sunbreak commented on July 27, 2024

peripheral:didDiscoverCharacteristicsForService (e5f5f000-c0ec-46ba-bd1f-b4c9f0da4208, e5f50001-c0ec-46ba-bd1f-b4c9f0da4208

Right e5f5f000 and e5f50001

await QuickBlue.writeValue(connectedDeviceId, "e5f50000-c0ec-46ba-bd1f-b4c9f0da4208", "e5f50001-c0ec-46ba-bd1f-b4c9f0da4208",
Uint8List.fromList(valuesKey + values), BleOutputProperty.withResponse);

Wrong e5f50000 and e5f50001

from quick_blue.

krishnadevy57 avatar krishnadevy57 commented on July 27, 2024

Still getting same error
void updateFriendlyName() async{
var valuesKey = utf8.encode("F") ;
var values = utf8.encode(friendlyNameTextController.value.text) ;

await  QuickBlue.writeValue(connectedDeviceId, "e5f5f000", "e5f50001",
    Uint8List.fromList(valuesKey + values), BleOutputProperty.withResponse);

}

from quick_blue.

Sunbreak avatar Sunbreak commented on July 27, 2024

peripheral:didDiscoverCharacteristicsForService (e5f5f000-c0ec-46ba-bd1f-b4c9f0da4208, e5f50001-c0ec-46ba-bd1f-b4c9f0da4208

from quick_blue.

krishnadevy57 avatar krishnadevy57 commented on July 27, 2024

peripheral:didDiscoverCharacteristicsForService (e5f5f000-c0ec-46ba-bd1f-b4c9f0da4208, e5f50001-c0ec-46ba-bd1f-b4c9f0da4208

yes what have to do?

from quick_blue.

Sunbreak avatar Sunbreak commented on July 27, 2024

e5f5f000-c0ec-46ba-bd1f-b4c9f0da4208, e5f50001-c0ec-46ba-bd1f-b4c9f0da4208

from quick_blue.

krishnadevy57 avatar krishnadevy57 commented on July 27, 2024

Thank you very much , issue fixed

from quick_blue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.