示例#1
0
  protected boolean doNetLinxDeviceInitialization() {
    this.getNetLinxDevice().setChannelCount(512);
    _pjLink = new PJLink();
    _pjLink.addListener(this);

    this.getNetLinxDevice().onFeedbackChannel(CHAN_DEVICE_IS_INITIALIZED); // Device is online.
    this.getNetLinxDevice().onFeedbackChannel(CHAN_DATA_IS_INITIALIZED); // Device is initialized.

    return true;
  }