The 'wait one hour' message needs the ignition on and the radio on for it to go away, till that message has gone, and you are back to the 'Code' prompt you will not be able to input a code and unlock the radio...
4287 is the correct code for your radio so suggest you are not entering it correctly... https://www.onlineradiocodes.co.uk/pages/how-to-enter-nissan-radio-code