Go to the control panel of your HP Printer and then after pressing the Wireless button, go to the Settings. After touching on the Wi-Fi Protected Setup, you should follow the prompts appearing on the screen. Now you will be prompted to PIN, tap on this PIN. When you do so, will be displayed on the screen.

To see this working, head to your live site.
Types of WPS Connections for HP Printer
On all the HP Printer you will find either of the below WPS options to connect the printer wirelessly.
WPS Push Button (For non-screen Printers)
WPS Pin ( For Screen enabled Printers)
Connect HP printer using WPS Push Button
Go to the control panel of your HP Printer and then after this after pressing the Wireless or Settings Button, you will observe a Blue Light starts blinking.
Go to the option of “WiFi Protected Setup” and then follow the instructions which appear on the printer screen.
After this, you will have to select the option “WPS Button”. When you do so, the printer will tell you to press the WPS button the wireless router.
After pressing the WPS button on the router, move to the printer and for a wireless connection, hit continue.
Now Connection will be established and the printer is ready to use.