How do I pair the hub with the router?

This is handled through the app. The Wi-Fi details are entered into the app, then the phone and app are connected to a temporary Wi-Fi access point created by the hub to complete the setup.