# loop-adam-6000

> LOOP ADAM Control

Latest version **0.0.1** (published 2023-08-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install loop-adam-6000
pnpm add loop-adam-6000
yarn add loop-adam-6000
bun add loop-adam-6000
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2023-08-01 |
| First published | 2023-08-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 23.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | fkkmemi |
| Maintainers | fkkmemi |

## Links

- npm: https://www.npmjs.com/package/loop-adam-6000
- Repository: https://github.com/loopsdteam/loop-adam-6000
- Homepage: https://memi.dev/
- npm.io page: https://npm.io/package/loop-adam-6000

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^1.4.0
- [xml2js](https://npm.io/package/xml2js.md) ^0.6.2

## Recent versions

- 0.0.1 (latest) — 2023-08-01

## README

# LOOP ADAM 6000

For ADAM relay control library

## support device

- ADAM 6060

> 2023.8.1

## prepare install

- nodejs >= 18
- yarn

## install

### npm

```bash
$ npm install loop-adam-6000
```

### yarn

```bash
$ yarn add loop-adam-6000
```

## list

- host: target host
- port: target port
- username: http auth username
- password: http auth password
- timeout: miliseconds

## example

```ts
import { AdamOptions, useApi } from 'loop-adam-6000'

const options: AdamOptions = {
	host: 'localhost',
	port: 4000,
	username: 'admin',
	password: '12345678',
	timeout: 3000, // miliseconds
}
const { getData, setData } = useApi()

const rs = await getData(options)
console.log(rs) // [true, false, false, true, false, false, false, true]

const rs = await setData(options, [
	true,
	true,
	false,
	true,
	false,
	false,
	false,
	true,
])
console.log(rs) // OK
```

---
_Source: https://npm.io/package/loop-adam-6000 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
