[SOLVED] Feature Request RTT: SEGGER_RTT_Peek()

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Feature Request RTT: SEGGER_RTT_Peek()

    Hi!

    I'm using RTT on an Arduino platform, replacing a default Serial output to instead use RTT on user request.
    One of the capabilities required by the existing Arduino Stream class (which Serial must support) is a Peek function to obtain the next character of down data, if one is available.

    Would it be possible to add a SEGGER_RTT_Peek() [always for terminal] or SEGGER_RTT_Peek(bufferIndex) function?

    Here's a draft diff based on RTT version 6.60d ($Rev: 16714 $):
    github.com/henrygab/Adafruit_n…11dac11c929c762040f238d12

    Thank you for considering this simple proposal.

    Henry
  • New

    Hi Henry,
    Thank you for your feature suggestion.

    I will forward this to the corresponding department and we will discuss this internally.

    Best regards,
    Fabian
    Please read the forum rules before posting: Forum Rules

    Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/


    Or you can contact us via e-mail.