nina b302 (nrf52840)

Posted on
  • 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

  • Does it completely stop, or are you able to call NRF.setScan again to start it off? And how long does it take to break?

    Also, what firmware version are you running?

  • Hi Gordon
    2v12
    break randonly
    looks completly because i put a blink led and then stop too

    //GPIO2
    setInterval(function() {
    D14.write(on_state);
    on_state = !on_state;
    }, 1000);

    i will make more tests for you soon
    At moment i "solved" this problem making a Hardware RESET, until solve the problem!

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

nina b302 (nrf52840)

Posted by Avatar for user95229 @user95229

Actions