updateToken(token) {
		if(token instanceof Buffer) {
			token = token.toString('hex');
		} else if(typeof token !== 'string') {
			return Promise.reject(new Error('Token must be a hex-string or a Buffer'));
		}

		// Lazily imported to solve recursive dependencies
		const connectToDevice = require('./connectToDevice');

		return connectToDevice({
			address: this.address,
			port: this.port,
			token: token
		}).then(device => {
			// Connection to device could be performed
			return tokens.update(this.api.id, token)
				.then(() => device.destroy())
				.then(() => true);
		}).catch(err => {
			// Connection to device failed with the token
			return false;
		});
	}
Update the token used to connect to this device.

@param {string|Buffer} token