Thanks Dan
I feel a little dumb for asking a question that could answer myself by just looking webadmin ...
Nevertheless, back to business.
I tried to use cmd 68 (Get Device Data), but there's still something wrong in the way I'm using it because I can't get params_[5] that is supposed to hold the Name of the device.
My code is:
tmpCmd = Command.new(cmd.devidto_ , -1000 , 0, 1, 68)
tmpCmd.params_[2] = cmd.devidto_.to_s
tmpCmd.params_[52] = 156.to_s
tmpCmd.params_[53] = false.to_s
SendCommand(tmpCmd)
I'm running this code from Process Receive Command for Child, so cmd.devidto_ is the device # of a child of my GSD. Basically I'm sending DCE router a command in order to get child device name.
params_[52] contains the PK_DeviceData of "Name" parameter (deduced from DeviceData table).
What I'm expecting after SendCommand is to be able to access to params_[5] and find the child name in it, but things are not going like this.
DCE Router simply says:
Received Message from 67 (Luce Studio / Studio) to -1000 (unknown / ), type 1 id 68 Command:Get Device Data, retry none, parameters: <0x84fcbb90>
08 08/25/08 14:55:15.198 Parameter 2(PK_Device): 67 <0x84fcbb90>
08 08/25/08 14:55:15.198 Parameter 52(PK_DeviceData): 156 <0x84fcbb90>
08 08/25/08 14:55:15.198 Parameter 53(UseDefault): false <0x84fcbb90>
If I try to access to tmpCmd.params_[5] I get a runtime error, as the variable does not exist.
What the hell am I doing wrong?
TIA
Marco