src/projectStructure.js
// This function adds a communication reference to the current (latest) device
This function adds a communication reference to the current (latest) device
This function adds a communication reference to the current ( latest ) device
addCommunicationReferenceToDevice (text, description, referenceID, datapointType, readFlag, transmitFlag, updateFlag, writeFlag, priority, isActive, channelID) {
    _.last(_.last(_.last(this.project.topology.areas).lines).devices).communicationObjectReference.push({
      __communicationObjecRefID: referenceID,
      text: text,
      description: description,
      datapointType: datapointType,
      readFlag: readFlag,
      transmitFlag: transmitFlag,
      updateFlag: updateFlag,
      writeFlag: writeFlag,
      priority: priority,
      isActive: isActive,
      channelID: channelID,
      connectors: []
    })
  }
addCommunicationReferenceToDevice ( text , description , referenceID , datapointType , readFlag , transmitFlag , updateFlag , writeFlag , priority , isActive , channelID ) { _ . last ( _ . last ( _ . last ( this . project . topology . areas ) . lines ) . devices ) . communicationObjectReference . push ( { __communicationObjecRefID : referenceID , text : text , description : description , datapointType : datapointType , readFlag : readFlag , transmitFlag : transmitFlag , updateFlag : updateFlag , writeFlag : writeFlag , priority : priority , isActive : isActive , channelID : channelID , connectors : [ ] } ) }
This function adds a communication reference to the current (latest) device
This function adds a communication reference to the current ( latest ) device