Implement setDeviceName and generateDeviceSecret