DesignSparkRS/DesignSpark.ESDK

Move non-ESDK functionality out

Closed this issue · 2 comments

9600 commented

This issue may need splitting into multiple. E.g. this shouldn't:

  • Load an application-specific config file (configFile='/boot/aq/aq.toml'). The app should be loading this instead.
  • Take care of geohash, which is again app-specific.
  • Be concerned with MQTT or Prometheus.

Should consider whether there is merit in having a new "cloud" or "data" module to wrap things like MQTT, Prometheus and maybe even data formatting such as geohash.

Separated out the configuration bits so that a MQTT, Prometheus etc is in the AQ firmware, and a configuration dictionary has to be passed in instead now.

Need to finish separating out GPS configuration & location providing to return lat/lon.