js_cdi_server

This program connects to a gridconnect TCP socket, and logs in as an OpenLCB node to the network. This node will show a given CDI xml file.

Usage:

$ node ./js_cdi_server.js -n 34 -x /tmp/io_board_tiva_cdi.xml -u localhost -q 12021

this will create a node with the noe ID last byte==34, exporting the given XML file as the CDI path. The node will connect to the gridconnect TCP hub at localhost:12021.

By varying the last byte differently one can have multiple such nodes on a network.

You can use it with any XML file, I give an example here.

Requirements: node.js, pretty much any version should work (including 0.10 AFAIK).