Type Definitions
ELData
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
EHD |
string | ヘッダ(1081/1082) | |
TID |
string |
<optional> |
トランザクションID(4桁hex) |
SEOJ |
string |
<optional> |
送信元EOJ(6桁hex) |
DEOJ |
string |
<optional> |
宛先EOJ(6桁hex) |
EDATA |
string |
<optional> |
後続データ全体(hex) |
ESV |
string |
<optional> |
サービスコード(2桁hex) |
OPC |
string |
<optional> |
プロパティ数(2桁hex) |
DETAIL |
string |
<optional> |
詳細部(EDATAからESV/OPCを除くhex) |
DETAILs |
Object.<string, string> |
<optional> |
解析済マップ {EPC(2桁hex): EDT(hex or "")} 値が空文字のときは「PDC=0(値未同梱/要求)」を表す |
Type:
- Object
ELFacilities
- Description:
- facilitiesの型: { [ip: string]: { [SEOJ: string]: { [EPC: string]: string } } }
- Source:
facilitiesの型: { [ip: string]: { [SEOJ: string]: { [EPC: string]: string } } }
Type:
- Object.<string, Object.<string, Object.<string, string>>>
ELIdentificationEntry
Properties:
| Name | Type | Description |
|---|---|---|
id |
string | EPC83で得た識別番号(HEX文字列) |
ip |
string | 送信元IP |
OBJ |
string | SEOJ(6桁HEX) |
識別番号の記録1件
Type:
- Object
ELNIC
Properties:
| Name | Type | Description |
|---|---|---|
name |
string | インターフェース名 |
address |
string | IPアドレス |
NICアドレス情報
Type:
- Object
ELNamespace
Properties:
| Name | Type | Description |
|---|---|---|
SETI_SNA |
string | 0x50 SetI_SNA |
SETC_SNA |
string | 0x51 SetC_SNA |
GET_SNA |
string | 0x52 Get_SNA |
INF_SNA |
string | 0x53 Inf_SNA |
SETGET_SNA |
string | 0x5e SetGet_SNA |
SETI |
string | 0x60 SetI |
SETC |
string | 0x61 SetC |
GET |
string | 0x62 Get |
INF_REQ |
string | 0x63 Inf_Req |
SETGET |
string | 0x6e SetGet |
SET_RES |
string | 0x71 Set_Res |
GET_RES |
string | 0x72 Get_Res |
INF |
string | 0x73 Inf |
INFC |
string | 0x74 InfC |
INFC_RES |
string | 0x7a InfC_Res |
SETGET_RES |
string | 0x7e SetGet_Res |
EL_port |
number | UDPポート(3610) |
EL_Multi |
string | IPv4マルチキャストアドレス |
Multi |
string | 互換エイリアス |
EL_Multi6 |
string | IPv6マルチキャストアドレス |
Multi6 |
string | 互換エイリアス |
EL_obj |
Array.<string> | null | 初期化時に与えたEOJリスト |
EL_cls |
Array.<string> | null | 上記から派生したクラスリスト |
sock4 |
Object | null | IPv4ソケット(dgram.Socket) |
sock6 |
Object | null | IPv6ソケット(dgram.Socket) |
NODE_PROFILE |
string | ノードプロファイルクラス(0ef0) |
NODE_PROFILE_OBJECT |
string | ノードプロファイルEOJ(送信用:0ef001 等) |
Node_details |
Object.<string, Array.<number>> | ノードプロファイルのEPC既定値 |
ipVer |
0 | 4 | 6 | 利用するIPバージョン(0=両方) |
nicList |
Object | NIC一覧 |
usingIF |
Object | 送信に使うIF指定(''はOS任せ) |
tid |
Array.<number> | トランザクションID[hi,lo] |
ignoreMe |
boolean | 自ホスト由来受信を無視 |
autoGetProperties |
boolean | 不足プロパティの自動取得 |
autoGetDelay |
number | 自動取得時の遅延(ms) |
autoGetWaitings |
number | 自動取得の待ち行列長 |
observeFacilitiesTimerId |
NodeJS.Timeout | null | 監視タイマーID |
debugMode |
boolean | デバッグログ出力 |
facilities |
ELFacilities | 保持中の機器情報 |
identificationNumbers |
Array.<ELIdentificationEntry> | 識別番号の収集結果 |
ECHONET Lite メインオブジェクトのプロパティ群
Type:
- Object
Options
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
v4 |
string |
<optional> |
''
|
送信に使うIPv4アドレス(空文字でOS任せ) |
v6 |
string |
<optional> |
''
|
送信に使うIPv6インターフェース名またはアドレス(空文字でOS任せ) |
ignoreMe |
boolean |
<optional> |
true
|
自IPからのループバック/同一NIC発の受信を無視 |
autoGetProperties |
boolean |
<optional> |
true
|
自動で不足プロパティを取得 |
autoGetDelay |
number |
<optional> |
1000
|
自動取得時の遅延(ms)。待ち行列長に比例して増加 |
debugMode |
boolean |
<optional> |
false
|
デバッグログ出力 |
Type:
- Object
Rinfo
Properties:
| Name | Type | Description |
|---|---|---|
address |
string | 送信元IPアドレス |
family |
'IPv4' | 'IPv6' | アドレスファミリ |
port |
number | 送信元ポート |
size |
number | 受信サイズ(byte) |
Type:
- Object
UserFunc(rinfo, els, error) → {void}
Parameters:
| Name | Type | Description |
|---|---|---|
rinfo |
Rinfo | 受信メタ情報 |
els |
ELData | null | パース済みELデータ(不正ヘッダ等で無視時はnull) |
error |
Error | null | パースやハンドリング中の例外(無いときはnull) |
Returns:
- Type
- void