I would like to read the RSSI of my HTCC-AB02 board in a variable like “long i = RSSI”. I’ve tried everything and am also aware of a previous posting where Jason referred to the screenshot below.
Unfortunately I can’t, can someone help me with this?
I would like to read the RSSI of my HTCC-AB02 board in a variable like “long i = RSSI”. I’ve tried everything and am also aware of a previous posting where Jason referred to the screenshot below.
Unfortunately I can’t, can someone help me with this?
No one? Maybe Jason from Heltec?
This is the way I do it:
// define callback routine in setup()
RadioEvents.RxDone = OnRxDone;
// this is the CallBack routine running on interrupt level, as short as possible
void OnRxDone( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr )
{
Rssi = rssi;
Snr = snr;
rxSize = size;
memcpy(rxpacket, payload, size );
//turnOnRGB(COLOR_RECEIVED,0);
//Serial.printf("\r\nreceived packet with rssi %d , length %d, snr %d\r\n",rssi,rxSize, snr);
packetReceived = true;
Radio.Rx(0); // receive next packet
}
Thanks for your help Achim, it is appreciated!