futomi / node-echonet-lite

A Node.js module which allows you to communicate with home appliances supporting the ECHONET Lite protocol.
MIT License
54 stars 17 forks source link

Is it possible to modify self-EOJ? #3

Closed sowd closed 8 years ago

sowd commented 8 years ago

The document says :

This node-echonet-lite module uses the EOJ [0x05, 0xFF, 0x01] as itself (i.e. you). This EOJ means the Controller class in the management, control-related device class group, and instance code 1.

Is there a way to change this? Such changeability is useful to develop emulators, or interface of home appliances, and so on.

futomi commented 8 years ago

Thanks for your idea! It sounds good.

I added the setSelfEoj() method newly for you. I hope it's just what you want. See the relevant section in the document for details.

Cheers.

sowd commented 8 years ago

What a quick res! Thank you so much!

sowd commented 8 years ago

forgot to close this