I am glad you found a solution !! - the above is very true of not only photon but probably "all things". What many don't know is that there are other things that happen outside of the loop to keep things working - Loop is really where you should call lots of things from and try and make sure none of them block for significant periods while "waiting for stuff" - as you so rightly say, a state machine is a great way to do this - or even a few timers that call functions periodically and then return!
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Adafruit GPS Photon problem | 48 | 14197 | April 12, 2021 | |
| Delay() interferes with NMEA sentence? [Resolved] | 6 | 2242 | October 7, 2016 | |
| [SOLVED] Using Asset tracker shield with Photon | 5 | 1532 | January 23, 2017 | |
| Photon - interfacing with GPS | 2 | 1875 | July 20, 2016 | |
| GPS Not Providing data via TX RX Pins | 3 | 835 | July 6, 2018 |