amxdd

0.1.0 • Public • Published

amxdd

AMX Device Discoveryプロトコルのビーコンを受信するためのモジュールです。

使用方法

const amxdd = require('amxdd');
 
amxdd(info => {
    console.dir(info);
});

AMX Device Discoveryプロトコルのビーコンを受信すると、コンストラクタの引数のコールバックに通信されます。 コールバックへの引数は下記のように、ビーコンの送信元アドレスと受信したビーコンです。

{
  address: '192.168.3.21',
  beacon: {
    'Device-UUID': 'xx-xx-xx-xx-xx-xx',
    'Device-SDKClass': 'Receiver',
    'Device-Make': 'DENON',
    'Device-Model': 'AVR-X2400H',
    'Device-Revision': '14.6.0'
  }
}

ビーコンは30秒〜60秒に1回くらい送信しているようです。

使用環境

以下のような環境で使用しています。

項目 内容
ホスト Raspberry Pi 3B+ Raspbian Stretch Lite
AVアンプ Denon社製AVR-X2400H

Readme

Keywords

Package Sidebar

Install

npm i amxdd

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

4.37 kB

Total Files

5

Last publish

Collaborators

  • hisasan