This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

I need to print the RSSI level in RTT but i couldn't do. Somebody can help me?

I try to print the RSSI level but i couldn't do. I use nRF51 DK and soft device S130.

This is the line that i just write:

SEGGER_RTT_printf("RSSI: %d\n",p_gap_evt->params.rssi);
Parents
  • Sorry, I didn't realize you were using BLE softdevice so I can't comment on the data fields. Also, I don't use that IDE so I'm not sure about the messages. However, given that the message is a warning that the 'expression has no effect' tells me that the SEGGER_... function has been declared as an empty function (doesn't do anything or take any arguments) meaning that you may not have set up the correct options to use the SEGGER print function.

    Hopefully someone can guide you on this.

    Tom

Reply
  • Sorry, I didn't realize you were using BLE softdevice so I can't comment on the data fields. Also, I don't use that IDE so I'm not sure about the messages. However, given that the message is a warning that the 'expression has no effect' tells me that the SEGGER_... function has been declared as an empty function (doesn't do anything or take any arguments) meaning that you may not have set up the correct options to use the SEGGER print function.

    Hopefully someone can guide you on this.

    Tom

Children
No Data
Related