Gents,
i saw a few threads here and on stackexchange (library - How does this code line detect if a serial interface is connected? - Arduino Stack Exchange) about proper detection of usb/serial connection/communication.
They all (seemed) to be related to UNO models, but i have a Pro Moni.
I'm powering it either using a battery ( over power module) on VCC or by USB ( over FTDI module).
In a larger scope i'd like to detect if the Pro is connected to PC (over FTDI/USB) or just powered from a battery.
Since both power sources connect to VCC pins, i think there maybe a way to check something on FTDI side and work in reverse from there - if FTDI.XYZ == ON then you are not on battery.
Appreciate your help.