korda
05-26-2008, 03:55 PM
Tried to call a function on a node, running a custom script, which must return more then one parameters.
I could not use existing C# example to receive more then one argument. I guess I could pass all data as one array, but the Phyton script for a node does not support arrays, only script for Portal can compile them w/out errors.
Can you extend your C# example so it will pass back random number AND actual node MAC?
The current example is using MAC on the computer, assuming it is the same...
In my practical application I would like to pass back from a node several parameters and the node's MAC. Each parameter must be 4-byte array, which must be accepted by PC as an 32-bit integer. The 4-byte array is read from the node's flash by loadNvParameter(). It is placed there before by the client app, by calling node function, which uses saveNvParameter(128, data1) and saveNvParameter(132, data2), where data1 and data2 32-bit unsiged int on the PC and 4-byte array on RFE...
I could not use existing C# example to receive more then one argument. I guess I could pass all data as one array, but the Phyton script for a node does not support arrays, only script for Portal can compile them w/out errors.
Can you extend your C# example so it will pass back random number AND actual node MAC?
The current example is using MAC on the computer, assuming it is the same...
In my practical application I would like to pass back from a node several parameters and the node's MAC. Each parameter must be 4-byte array, which must be accepted by PC as an 32-bit integer. The 4-byte array is read from the node's flash by loadNvParameter(). It is placed there before by the client app, by calling node function, which uses saveNvParameter(128, data1) and saveNvParameter(132, data2), where data1 and data2 32-bit unsiged int on the PC and 4-byte array on RFE...