import { createAIPMConnector } from "./index.ts";
const aipm = await createAIPMConnector({
ip: "192.168.1.176",
mac: "1B03F4",
});
aipm.getInfoForever((e) => console.log(e));
aipm.on();
console.log("켜짐");
setTimeout(() => {
aipm.off();
console.log("꺼짐!!");
}, 10);
- ✅ Switch on-off
- ✅ Get voltage, current, frequency, power-factor, consumtion, accumulate, price, co2 info
제가 했을땐 잘 됐는데 다른 환경에선 테스트 안해봤습니다 ..,
이 레포 참조했어요