enniot-device-sdk
Advanced tools
Comparing version 0.0.11 to 0.0.12
14
index.js
@@ -39,3 +39,3 @@ const _ = require('lodash'); | ||
const memory_used = memory.used || Number(res[0].used_memory.replace(/mb/i, '')) * 1000000; | ||
console.log(res) | ||
return { | ||
@@ -57,2 +57,4 @@ gateway_eui: res[0].gateway_eui, | ||
humidity: Number(res[0].humidity), | ||
fw_version: res[0].fw_version, | ||
hw_version: res[0].hw_version, | ||
} | ||
@@ -76,3 +78,3 @@ } | ||
type: "fwupdate_info", | ||
content: [params], | ||
content: params.content, | ||
}); | ||
@@ -107,2 +109,10 @@ return res; | ||
} | ||
// 蜂窝网络读取 | ||
async getCellular() { | ||
const res = await this.tcp.invoke({ | ||
method: "GET", | ||
type: "cellular", | ||
}); | ||
return res; | ||
} | ||
// 蜂窝网络设置 | ||
@@ -109,0 +119,0 @@ async setCellular(params) { |
{ | ||
"name": "enniot-device-sdk", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10076
344