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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -