@lifefinder/vsm-mqtt-client-open-source 0.0.50 → 0.0.52

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifefinder/vsm-mqtt-client-open-source",
3
- "version": "0.0.50",
3
+ "version": "0.0.52",
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;
package/solvers/none.js CHANGED
@@ -33,7 +33,7 @@ module.exports.api = {
33
33
  if (!args.k)
34
34
  return undefined;
35
35
  // The almanac loading procedure may be valid also for non-loracloud solvers
36
- return loraCloudLoadAlmanac.loadAlmanac(args);
36
+ return loraCloudLoadAlmanac(args);
37
37
  },
38
38
  checkArgumentsOrExit: (args)=>{if (args.k) console.log("No position solver, using loracloud key (-k) for almanac downloads") },
39
39
  getVersionString: ()=>"No Position Solver",