New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-atplatform

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-atplatform

Advantech IIoT platform module

latest
Source
npmnpm
Version
3.0.1
Version published
Maintainers
1
Created
Source

node-atplatform

Node.js Integration for Advantech IIoT platform function.

Notice that an Advantech IIoT Platform SDK have to be installed to make this node works correctly. Advantech IIoT Platform SDK download link is shown below:

Windows: https://github.com/Advantech-IIoT/Platform-SDK/tree/master/windows/bin

Linux: https://github.com/Advantech-IIoT/Platform-SDK/tree/master/linux/bin

Installation

Use npm command to install this package locally in the Node-RED modules directory

npm install node-atplatform

or install it globally with the command

npm install node-atplatform -g

Usage

Platform package provides the following functions:

  • Get Module ID
  • Get BIOS version
  • Get EC version
  • Get OS version
  • Get CPU model name
  • Get COM ports
  • Get Memory available
  • Get Disk information

Example

Please refer to demo.js.

All these examples are started with:

var platform = require('node-atplatform');

Get platform module ID

Print platform module ID

console.log(platform.hwmonGetInfo(platform.TOPIC_MODULE_ID));

Get BIOS version

Print BIOS version

console.log(platform.hwmonGetInfo(platform.TOPIC_BIOS_VER));

Get EC version

Print EC version

console.log(platform.hwmonGetInfo(platform.TOPIC_EC_VER));

Get OS version

Print OS version

console.log(platform.hwmonGetInfo(platform.TOPIC_OS_VER));

Get CPU model name

Print CPU model name

console.log(platform.hwmonGetInfo(platform.TOPIC_CPU_NAME));

Get all COM ports

Print all COM ports

console.log(platform.hwmonGetInfo(platform.TOPIC_COM_PORTS));

Get available memory

Print available memory

console.log(platform.hwmonGetInfo(platform.TOPIC_MEM_AVAIL));

Get disk information

Print disk information

console.log(platform.hwmonGetInfo(platform.TOPIC_DISK_INFO));

Get all platform information

Print all platform information

console.log(platform.hwmonGetInfo(platform.TOPIC_ALL));

Tested Platform

  • Windows 10 Enterprise LTSB with node.js 18.14.1

History

  • 3.0.1 - June 2023 : update for NODE_MODULE_VERSION=108 (C++ addons use Node-API)
  • 2.0.0 - November 2019 : update for NODE_MODULE_VERSION=64 (C++ addons use Native Abstractions for Node.js)
  • 0.0.1 - March 2018 : Initial Release

License

Copyright 2023 ADVANTECH Corp. under the Apache 2.0 license.

Keywords

Platform

FAQs

Package last updated on 17 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts