RP2040 RSSI on Arduino Cloud

I'am working on a proyect on RP2040 Arduino Connect.

I have trouble when I use the function "Wifi.RSSI()" my Arduino gets a reset.

I have the documentation and the function returns a long int, but I can´t do it without getting reset my Arduino.

I attached the function for RSSI.

     int32_t signal = WiFi.RSSI();
    
    if(signal <= -110 ){
      bmpDraw((char *)"wifi1.bmp", 255, 0);
    }
    else if(signal < -100 && signal > -110){
      bmpDraw((char *)"wifi2.bmp", 255, 0);
    }
    else if (signal < -85 && signal > -100){
      bmpDraw((char *)"wifi3.bmp", 255, 0);
    }
    else if (signal < -75 && signal > -85){
      bmpDraw((char *)"wifi4.bmp", 255, 0);
    }
    else if (signal > -70){
      bmpDraw((char *)"wifi5.bmp", 255, 0);
    } 

context free snippet of code instead of the entire sketch

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.