Changes

Jump to navigation Jump to search

UPS3

3 bytes added, 11:19, 16 September 2020
int battery_voltage = getBatteryVoltage(); // please refer to the user manual to achieve getBatteryVoltagefunction;
// You can make your own actions based on disconnected_flag and battery_voltage, you can only select one condition also
if (disconnected_flag ) {
// execute linux or software shutdown command
}
 
sleep(10);
}

Navigation menu