sleep() [ Sleep ]

usart (SystemSleepConfiguration)

SystemSleepConfiguration::usart, usart, SystemSleepConfiguration.usart

SystemSleepConfiguration& usart(const USARTSerial& serial)

SystemSleepConfiguration config;

Wake from a hardware UART (USART). This can only be done with a hardware serial port; you cannot wake from the USB virtual serial port (Serial).

Note: Keeping the USART active in ultra-low power mode significanly increases the current used while sleeping.

USART Wake Support Gen 2 Gen 3
Wake from STOP sleep
Wake from ULTRA_LOW_POWER sleep  
Wake from HIBERNATE sleep    

P2 and Photon 2 Devices:

Wake on serial is not supported on the P2, Photon 2, or Tracker M.