VIZIO, one of the world’s largest manufacturers and sellers of internet-connected “smart” televisions, has agreed to settle charges that it installed software on its TVs to collect viewing data on consumer TVs without consumers’ knowledge or consent.

The Federal Trade Commission filed a complaint against Taiwan-based computer networking equipment manufacturer D-Link Corporation and its U.S. subsidiary, alleging that inadequate security measures taken by the company left its wireless routers and Internet cameras vulnerable to hackers and put U.S...