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_ that is supposed to hold the Name of the device.
My code is:
tmpCmd = Command.new(cmd.devidto_ , -1000 , 0, 1, 68)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.
tmpCmd.params_ = cmd.devidto_.to_s
tmpCmd.params_ = 156.to_s
tmpCmd.params_ = false.to_s
params_ 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_ 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>If I try to access to tmpCmd.params_ I get a runtime error, as the variable does not exist.
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>
What the hell am I doing wrong?