Managed to use devices and topics api