Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

235
Visualizações
Glucose measurement from cordova-plugin-ble-central Accu Chek Mobile

I try to read glucose measurement from cordova-plugin-ble-central.

I found how obtain different values like manufacturer, or serial number.

But I can't get the readings glucose measurement.

I do that

var databuffer = new Uint8Array(2);
    databuffer[0] = 0x01;
    databuffer[1] = 0x01;

console.log("startwrite");
    
    ble.write(localStorage.getItem('ACMid'), "1808", "2A52", databuffer.buffer, 
        function(data){
                
            int8data = new Uint8Array(data);            
            console.log("Hooray we have data write : " + JSON.stringify( data ));
            console.log("Hooray we have data write : " + JSON.stringify( int8data));                
        }, 
        function(failure){
            addMyContenu("Failed write from device. " + JSON.stringify(failure), 1);
            console.log("Failed write characteristic from device. " + JSON.stringify(failure));
        });
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

All us running :

var databuffer = new Uint8Array(2);
    databuffer[0] = 0x01;
    databuffer[1] = 0x01;
        
    console.log("startnotif");
    
    ble.startNotification(localStorage.getItem('ACMid'), "1808", "2A18", 
        function(datanotif){
            
            int8data = new Uint8Array(datanotif);
                    
        id = int8data[1] & 255;
        id |= (int8data[2] & 255) << 8;
        
        val = int8data[12];
                
        annee = int8data[3] & 255;
        annee |= (int8data[4] & 255) << 8;          
        
        mois = addZero(int8data[5]);
        jour = addZero(int8data[6]);
        
        h = addZero(int8data[7]);
        m = addZero(int8data[8]);
        s = addZero(int8data[9]);
        
        datehms = annee + "-" + mois + "-" + jour + "T" + h +":"+m+":"+s;
            console.log("Hooray we have data notif : " + JSON.stringify( int8data ));           
                
        },
        function(failure){
            addMyContenu("Failed notif from device. " + JSON.stringify(failure), 1);
            console.log("Failed notif characteristic from device. " + JSON.stringify(failure));
        });     
    
    console.log("startwrite");
    
    ble.write(localStorage.getItem('ACMid'), "1808", "2A52", databuffer.buffer, 
        function(data){
            console.log("Hooray we have data write : " + JSON.stringify( data ));               
        }, 
        function(failure){
            addMyContenu("Failed write from device. " + JSON.stringify(failure), 1);
            console.log("Failed write characteristic from device. " + JSON.stringify(failure));
        });
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda