Hi all, I have a bug in my project that i need guidance on and not sure if this is the right place to post it or not so i wont go to deep into posting code or anything just yet unless requested.
I have written my first biggish sketch in the arduino IDE ( which is small for most but big for me anyway ) and overal it works as expected so i'm happy with that. However there is a senario i can induce that causes the Sketch not to load up at all. IE: the serial screen doesn't even display any of the void startup() Serial.println codes. Therefore it's hard for me to diagnose where the issue lays, as i can't put Serial.print code through the sketch to see where it stops or what it's doing wrong.
Quick brief on what i have.
- In the IDE i have written a sketch and loaded it on a D! mini
- It basically listens for two digital inputs from a independant alarm module and then sends a MQTT message if either input is triggered
- Suprisingly for me ... the code works great under %99 of the operation
- However... if the alarm module is ON and i disconnect the D1 mini then reconnect it the above senario happens
- if alarm is off and i disconnect then reconnect the D1 mini then it works as expected
So my first couple of questions are ....
- is this the right place for me to ask this type of question
- Any tips to diagnosing this type of issue if the setch doesn't even seem to load the startup() code ?
Regards
Skooks