Mynvadded(), Mynvtypechanged(), Mynvdeleted() – Echelon FTXL User Manual
Page 223
FTXL User’s Guide
211
break;
}
}
myNvAdded()
The myNvAdded() function calls the UpdateCircuitMap() utility function to
update the logical circuit for the added network variable.
The myNvAdded() function is shown below.
/* This function is called by the FTXL LonNvAdded event
* handler, indicating that a dynamic network variable has
* been added. It is also called during LonInit for each
* dynamic NV that is found in the FTXL persistent storage.
*/
void myNvAdded(const unsigned index,
const LonNvDefinition* const pNvDef) {
/* Based on the NV name and type, update the circuit
* map. */
UpdateCircuitMap(index, pNvDef);
}
myNvTypeChanged()
The myNvTypeChanged() function calls the UpdateCircuitMap() utility function
to update the logical circuit for the changed network variable.
The myNvTypeChanged() function is shown below.
/* This function is called by the FTXL LonNvTypeChanged
* event handler, indicating that a dynamic network
* variable LonNvDefinition has been updated. Since either
* the SVNT_id or the name may have changed, the NV may
* need to be added to a circuit, removed from a circuit,
* or moved to a different circuit.
*/
void myNvTypeChanged(const unsigned index,
const LonNvDefinition* const pNvDef) {
/* Based on the NV name and type, update the circuit
* map. */
UpdateCircuitMap(index, pNvDef);
}
myNvDeleted()
The myNvDeleted() function checks to see if there are any dynamic network
variables defined. If there are, this function removes the specified network
variable from the logical circuit defined for the application, and calls the
UpdateCircuitOutput() utility function to update the logical circuit and propagate
the changes to the network.
The myNvDeleted() function is shown below.
/* This function is called by the FTXL LonNvDeleted event
* handler, indicating that a dynamic network variable has
* been deleted.
*/