Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 1 month ago.
Is there a way to check whether the USB is connected?
I want to enter to console mode when the USB is connected, otherwise the board has to sleep.
You can check the first time using the .configured() function at least (you need to use the connect(false) option, but it depends a bit on how that is done on which USB device you are creating. I don't know if that works after more than the first time.
posted by Erik - 05 Jul 2016Where can I find that function?
posted by Viviana Marcela Quirama Cañaveral 07 Jul 2016