added payload, rtc, and watchdog function prototypes