Skip to content

sophianetSun/iotdb-client-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apache IoTDB Client For NodeJS

Overview

This is the NodeJS client of Apache IoTDB.

Apache IoTDB website: https://iotdb.apache.org Apache IoTDB GitHub: https://github.com/apache/iotdb

Development: ttps://github.com/sophianetSun/

Installation

Install from NPM

bun add iotdb-client-nodejs

Prerequisites

Only upper IoTDB 2.0 support

IoTDB Version >= 2.X.X

How to Use the Client (Quick Start)

import { IoTDBClient, getSession, getQuery, closeSession } from 'iotdb-client-nodejs'

const client = new IoTDBClient("localhost", 6667);
const sessionId = await getSession(client, "root", "root", "Asia/Seoul");
const result = await getQuery(client, sessionId,
    "select * from root.enerdot.ems.*"
);
await closeSession(client, sessionId);
/*
    Return
    [
        {
            time: 2025-05-08T12:13:00Z,
            key: value,
        },
        {
            time: 2025-05-08T12:12:00Z,
            key: value,
        },
        ...
    ]
*/

About

Apache IoTDB Client for node.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published