madnerdorg / libreconnect

Plug an arduino to connect it as a websocket
http://madnerd.org
MIT License
5 stars 0 forks source link

Use the same devices multiples times. #5

Open remisarrailh opened 7 years ago

remisarrailh commented 7 years ago

As for now if you want to use the same device on the same machine, you need to change the port in the arduino code.

Instead usb_scanner could incrementally change the port for each devices connected: For example:
led1:42001 led2:43001 led3:44001 led4:45001

It would maybe be easier to understand if we use a different base port: led1:41001
led2:42001
led3:43001

Another solution would be to save the websocket port in the eeprom of the arduino, so we can change it with serial commands.

remisarrailh commented 7 years ago

I Think it is best to attribute custom name/port directly on the arduino so we are able to differentiate which devices is which.