Материал из Module developer
// format of incoming Setup data (created in iRidium studio): { // Data for connecting drivers, created in Project Device Panel Drivers: [ { Name: "HDL-BUS Pro Network (UDP)", // driver name Properties: // driver properties [ { Type: "textfield", //signals that text field to enter data has to be shown. Name: "SubnetID", //Property name to which values are sent Validation: function (in_value) { //Function to test values entered by a user //in_value - the coming parameter containing a value, entered by a user if (in_value != "") return 0; //If there are no errors, 0 is returned else return "Please input SubnetID"; //If there are errors, error text is returned } }, .. ], }, .. ],
