Hi Mark,
Does the example code work for you when not integrated into your project?
Have you tried the sleep API directly in your project?
dot->sleep(delay_s, mDot::RTC_ALARM, deepsleep);
The setWakePin() configures the pin and sets a variable then getWakePin() reads the variable back. Looks like you can query but not set. I don’t see an obvious reason why.
Kind regards,
Leon