How to debug possible code issues on a deployed device

@rickkas7, can you confirm and possibly update the docu for Particle.function() also allowing float as return value?
I've never (conciously) seen a change log entry about that (the same es with actual bool support for Particle.variable()).

The same would go for examples like this
https://docs.particle.io/reference/device-os/firmware/photon/#get-device-name
Which would throw errors with newer device OS versions

I think that's due to the fact that the Gen3 device OS was branched off of Gen1&2 version prior the introduction of that demand in 0.8.0-rc.4 (I think) so 0.9.0 Gen3 was in some features lagging behind 0.8.0-rc.x on Gen1&2 - not good style (I agree :blush:), but 1.1.0 should consolidate these discrepancies.

This might help

  char msg[128];
  snprintf(msg, sizeof(msg)
          , "%.6f,%.6f:%d:%d:%.6f:%s:%d:%d"
          , latGPS
          , longGPS
          , brng
          , alertBrng
          , d30m
          , alertState ? "TRUE" : "FALSE",
          , strength
          , quality);
  Particle.publish("Pivot", msg, PRIVATE);