android - I can not read characteristic from thermometer with Ionic -


i reading characteristics of thermometer, fine, can read manufacturer, model , device name,

however, when try read temperature characteristic returns value coding not know. example, when temperature marks thermometer 25.1 brings me this:

image characteristic temperature

could me solve problem?

this code read characterictic:

    $scope.attend = function(){       alert("***** sent values *****: \nmac address:"+ $stateparams.id+"\nid_service: "+service_id+"\nid_characteristic: "+characteristic_id);       ble.read(         $stateparams.id,         service_id,         characteristic_id,         function(response){         //lert("value response: "+response); ////////////////////////////////////////////////////////////////////////////////////////////////////         var dbufferarray = string.fromcharcode.apply(null,new uint8array(response));         alert("response: "+dbufferarray);         console.log("response: "+dbufferarray); //////////////////////////////////////////////////////////////////////////////////////////////////// 

i based example:

ionic bluetoothle app


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -