Skip to main content
Graduate
January 17, 2024
Question

How to detect if USART is connected to a console app ?

  • January 17, 2024
  • 1 reply
  • 872 views

As i state in the title, what is the best way to detect a connection to a console app on a pc?

I want to include a while loop in my program, that stalls the main program until the user establishes a connection and the program proccedes to the super loop.

Is there a function or a variable that detects the conection and returns true or false respectively ?

SHould i try to create a handshake between the two ?

    This topic has been closed for replies.

    1 reply

    Super User
    January 17, 2024