You are reading a single comment by @user95229 and its replies. Click here to read the full conversation.
  • i am using the yhid routine for scan a ble device, but, after a while of use, the system stop...then i have to reset again...

    Did someone got some problem or this routine is weird ?

    NRF.setScan(function(d) {
        //NINA B302 ENDDEVICE COM AHT10
        //SE ACHOU, MANDA PARA O WEB SERVER - NINA W106
        //if(d.id.includes("f2:52:f4:64:fd:9b"))­
        {
          on = !on;
          //escreve no D13
          D13.write(on); //GPIO 1
          Serial1.print(d.id.substring(0,17)+ " "+d.data[9]+"."+d.data[10]);  //temperatura
          if(d.data[10]<10)
            Serial1.print(0); //temperatura (preencha 0)
          Serial1.print(" "+d.data[11]);    //botao  
          on = !on;
          D13.write(on); //GPIO 1
        }
    }, { filters: [{ manufacturerData:{0x0591:{}} }] });
    }
    

    thank you

About

Avatar for user95229 @user95229 started