Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

Device ID is set in autorun.sh #8

Closed
SorraTheOrc opened this issue Dec 1, 2014 · 1 comment
Closed

Device ID is set in autorun.sh #8

SorraTheOrc opened this issue Dec 1, 2014 · 1 comment
Labels

Comments

@SorraTheOrc
Copy link

I'm only just starting to look at the gateway application and I'm not a C# developer so I may be missing something fundamental, but...

Program.cs generates Unique identifier for the device:

string deviceId = Guid.NewGuid().ToString ("N"); // Unique identifier for the device

However, this gets overwritten in autorun.sh:
-deviceid C8CA5B13-A550-4FF0-B823-46D8A2640880

It seems to me that autorun.sh should not set the device ID, otherwise every device in the network will have the same ID. I've verified that running without a DeviceID appears to work (on Windows and in a very limited test environment).

What are the implications of removing that switch from aytorun.sh, that is what is deviceID used for?

@SorraTheOrc SorraTheOrc added the bug label Dec 1, 2014
@olivierbloch
Copy link
Contributor

The DeviceID is not used in the curent state of the project. It's here as a place holder showing how one could uniquely identify his devices using the a GUID.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants