Skip to content

다원DNS의 PM-B310-W2 스마트플러그 프로토콜 분석 및 Deno 구현체

Notifications You must be signed in to change notification settings

rycont/pm-b310-w2-reversing-deno

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

WELCOME TO DIGITAL WORLD

import { createAIPMConnector, seekAIPM, AIPM } from "./index.ts";

const aipm: AIPM[] = await seekAIPM("192.168.1.255");
const aipmIndex: string[] = aipm.map((e) => e.alias);

for (let i = 0; i < aipm.length; i++) {
  aipm[i].connector = await createAIPMConnector({
    ip: aipm[i].ip,
    mac: aipm[i].mac,
  });
}

aipm[aipmIndex.indexOf("ALIAS")].connector?.on();
  • ✅ Seek PM Devices
  • ✅ Switch on-off
  • ✅ Get voltage, current, frequency, power-factor, consumtion, accumulate, price, co2 info image

Demo Video

제가 했을땐 잘 됐는데 다른 환경에선 테스트 안해봤습니다 ..,

이 레포 참조했어요

godmode2k/test_power_manager

About

다원DNS의 PM-B310-W2 스마트플러그 프로토콜 분석 및 Deno 구현체

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published