Hey all,
I developed a couple of Photons to control my home automation a few years ago, I’ve finally got around to getting some PCBs printed so thought I better sort out one or two bugs / niggles.
The problem I have is after a period of time, one of my Photons starts to run slowly, e.g. one of the functions is to switch on a Hue bulb using a wired PiR. When the Photon first boots, it switches the light on in a second or so of activating, after a period of time (perhaps 20-48hrs) it can take upto 5-10 seconds to activate.
I expect I have some code which is causing it to slow down / loop… my problem is how do I track the dodgy code down? I’ve looked at Particle Console when it’s running slow and the message to switch on the light is being delayed when slow running so I can rule out certain functions related to Hue control etc but have never delved into this kind of debugging before…
Is there a way to hook the Photon up via USB to look what it’s doing? Or anyone have any suggestions on how to track the dodgy code down or see what it’s doing externally?
TIA!