@lifefinder/vsm-mqtt-client-open-source 0.0.49 → 0.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/rules.js +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifefinder/vsm-mqtt-client-open-source",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
4
4
  "description": "MQTT client for vsm sensors",
5
5
  "main": "vsm-mqtt-client.js",
6
6
  "author": "Lars Mats",
package/rules.js CHANGED
@@ -214,11 +214,14 @@ const rules = [
214
214
  if (lastAttemptPeriodS < ALMANAC_DOWNLOAD_INTERVAL_S)
215
215
  return next; // Do not attempt a download now
216
216
  next.gnss.lastAlmanacDownloadAttempt = date;
217
+ console.log("Almanac update: Attempted")
217
218
 
218
219
  // Run this asynchronously rather than wait
219
220
  if (!solver.api.downlinkAlmanac) {
221
+ console.log("Almanac update: failed No API")
220
222
  return next;
221
223
  }
224
+ console.log("Almanac update: API called")
222
225
  downlinkAlmanac(args, integration, client, solver, deviceid, next.encodedData.maxSize);
223
226
 
224
227
  return next;