We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I am wondering is there any way to assign a custom uuid for a device. like below:
DeviceDriver = function() { this.uuid = "<uuid>"; Device.call(this); }
just need to have a consistent uuid.
uuid
The text was updated successfully, but these errors were encountered:
I believe you can manually override it with something like:
DeviceDriver = function() { // Device constructor first sets the id = uuid.v4() Device.call(this); // Override it after that. this.id = "<uuid>"; }
Sorry, something went wrong.
@AdamMagaluk it does not work as expected. Here is what I did.
var Water = module.exports = function DeviceDriver() { Device.call(this); this.id = "12121212-1111-1111-1111-121212121212"; }
Still use the default uuid.
Here is the JSON returned which you can see the id is the default one.
No branches or pull requests
Hi,
I am wondering is there any way to assign a custom uuid for a device. like below:
just need to have a consistent
uuid
.The text was updated successfully, but these errors were encountered: