Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

enniot-device-sdk

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enniot-device-sdk - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

28

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 {

@@ -47,3 +47,2 @@ gateway_eui: res[0].gateway_eui,

operate_system: os.platform || res[0].operate_system,
has_sim_card: !!res[0].SIM_status,
flash_total,

@@ -56,2 +55,6 @@ flash_used,

cpu_load: load.currentload,
cpu_usage: Number(res[0].CPU_usage),
cpu_load_1: res[0].CPU_load_1,
cpu_load_5: res[0].CPU_load_5,
cpu_load_15: res[0].CPU_load_15,
temperature: Number(res[0].temperature),

@@ -83,7 +86,18 @@ humidity: Number(res[0].humidity),

}
// 获取内网网卡设置列表
async getNetworkLans() {
const res = await this.tcp.invoke({
method: "GET",
type: "NetworkLAN",
});
return res;
}
// 获取内网网卡设置
async getNetworkLan() {
async getNetworkLan(lan) {
const res = await this.tcp.invoke({
method: "GET",
type: "NetworkLAN",
content: [{
network_interface: lan
}],
});

@@ -101,2 +115,10 @@ return res;

}
// 获取外网网卡设置
async getNetworkWan() {
const res = await this.tcp.invoke({
method: "GET",
type: "NetworkWAN",
});
return res;
}
// 外网网卡设置

@@ -103,0 +125,0 @@ async setNetworkWan(params) {

2

package.json
{
"name": "enniot-device-sdk",
"version": "0.0.12",
"version": "0.0.13",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc