Linking code to a particular photon

I have several Photons that run different scripts. One the web IDE, I occasionally (often) forget to switch the active core and update the script to the wrong device. Is there a way to link a script to automatically update to a particular core?

1 Like

Photons run firmware, not scripts. Unfortunately the Web IDE does not assign a specific device for each project. There are ways of achieving this if you build using “local” methods like Particle Dev, CLI, etc.

1 Like

Take a look at Products in the console, those can lock to specific devices. Unless it’s mission critical, I would just double check it in the IDE though, since using a product will most likely complicate things worse than the current situation.

1 Like