wakeupperiod param u8 -> u16