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:
Comments
Post a Comment