Upload function for alarm.