I'm not 100% sure that I have to attach the interrupt there (in the sleepNow() function) and detach it in the wakeNow()
You most certainly do not. Attach once in setup() and you are done.
I'm not 100% sure that I have to attach the interrupt there (in the sleepNow() function) and detach it in the wakeNow()
You most certainly do not. Attach once in setup() and you are done.