Email (record): RESTOP: Retaining External Peripheral State in Intermittently-Powered Sensor Systems