The gateway performs two basic services for the client.
It is the camera's home base, which provides authentication services (user and device) and configuration services (it updates the camera's configuration, so the user doesn't have to).