Win a copy of Fixing your Scrum this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

How to read data from BLE device

 
Greenhorn
Posts: 1
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So, I have been struggling for some time now with this BLE. I am working on an Appcelerator module that can enable communication (read/write data) from some devices with an Android tablet. I am able to scan, discover devices, connect to it and discover it's services. What I am unable to do is to read data. As you can see on the below code, the contents on method readData() ALWAYS return false. (writeDescriptor, readCharacteristic, readDescriptor). No matter what, this always returns false. The callback is never called, and I am completely stuck. What on earth am I doing wrong? How can I set those stuff on readData() to be true, and what to do after that? Thank you all in advance!



Now, my callback methods:


And here is the log....



Please ranch people, help me, I am 3 weeks now banging my head over the wall for this.....
 
Oh, sure, you could do that. Or you could eat some pie. While reading this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic