orsjb / HappyBrackets

HappyBrackets is an audio-focused library and toolkit for creative coding for the internet of things.
Apache License 2.0
36 stars 3 forks source link

Simulator ID allocation, possible design features and erratic behaviour #76

Open orsjb opened 5 years ago

orsjb commented 5 years ago

1) Simulator ID allocation: when the controller allocates IDs it uses a different set of numbers to the remotely connected devices. So for example a simulator AND a device will both be allocated the number -1. Not sure if this is by design or by accident, but it would seem more useful if each device is allocated a unique ID regardless of whether it is a simulator or not. 2) Possible design features: relatedly, it would be nice if simulators are marked as such in some way in the list. It would also be nice to be able to run multiple simulators and to allow simulator specific options. It would also make sense if the simulator quit when IntelliJ quit. 3) Erratic behaviour: sometimes the simulator doesn't respond and behaves erratically. Will update this issue if I can better isolate the causes.

angelofraietta commented 5 years ago

1 - They are not allocated using a different set of numbers. This would have been an unusual set of circumstances. At a guess, it was an unassigned simulator with a restarted IDE or something like that.

2- A simulator is the same as any other device. Just look at the name of the device (will be a computer name and not a HB-XXXXX). You can also assign a name. I think will give a prompt to close when closing project.