xlthim
08-25-2008, 10:37 AM
I need to be able to put an engine to sleep from remote code.
This is what I have so far..
C# code (I have hard coded my duration for 120 right now, but I need to make this variable):
publicvoid sensorSleep(String ID, String duration)
{
byte[] snapAddr = this.getSnapNetAddr();
byte[] mtID = newbyte[] { Convert.ToByte(ID.Substring(0, 2), 16), Convert.ToByte(ID.Substring(2, 2), 16), Convert.ToByte(ID.Substring(4, 2), 16) };
proxy.BeginRpc(snapAddr, mtID, "goSleep", newobject[] { "120" }, RpcCallback);
}
I had a messagebox pop-up to test the remote code calling this function and it is. This code isn't passing correctly into the engine.
Does Gateway have a way to see errors between it and the engine?
xlthim :confused:
This is what I have so far..
C# code (I have hard coded my duration for 120 right now, but I need to make this variable):
publicvoid sensorSleep(String ID, String duration)
{
byte[] snapAddr = this.getSnapNetAddr();
byte[] mtID = newbyte[] { Convert.ToByte(ID.Substring(0, 2), 16), Convert.ToByte(ID.Substring(2, 2), 16), Convert.ToByte(ID.Substring(4, 2), 16) };
proxy.BeginRpc(snapAddr, mtID, "goSleep", newobject[] { "120" }, RpcCallback);
}
I had a messagebox pop-up to test the remote code calling this function and it is. This code isn't passing correctly into the engine.
Does Gateway have a way to see errors between it and the engine?
xlthim :confused: