public override void LogosSplusInitialize() { _SplusNVRAM = new SplusNVRAM(this); SECURITYSERVER = new SplusTcpServer(1024, this); SECURITYSERVER.OnSocketReceive.Add(new SocketHandlerWrapper(SECURITYSERVER_OnSocketReceive_0, false)); _SplusNVRAM.PopulateCustomAttributeList(true); NVRAM = _SplusNVRAM; }
public override void LogosSplusInitialize() { SocketInfo __socketinfo__ = new SocketInfo(1, this); InitialParametersClass.ResolveHostName = __socketinfo__.ResolveHostName; _SplusNVRAM = new SplusNVRAM(this); INTERNALRXBUFFER = new CrestronString(Crestron.Logos.SplusObjects.CrestronStringEncoding.eEncodingASCII, 65000, this); MYSERVER = new SplusTcpServer(9999, this); DIGITAL_VALUE = new InOutArray <DigitalInput>(20, this); for (uint i = 0; i < 20; i++) { DIGITAL_VALUE[i + 1] = new Crestron.Logos.SplusObjects.DigitalInput(DIGITAL_VALUE__DigitalInput__ + i, DIGITAL_VALUE__DigitalInput__, this); m_DigitalInputList.Add(DIGITAL_VALUE__DigitalInput__ + i, DIGITAL_VALUE[i + 1]); } DIGITAL_TRUE = new InOutArray <DigitalOutput>(20, this); for (uint i = 0; i < 20; i++) { DIGITAL_TRUE[i + 1] = new Crestron.Logos.SplusObjects.DigitalOutput(DIGITAL_TRUE__DigitalOutput__ + i, this); m_DigitalOutputList.Add(DIGITAL_TRUE__DigitalOutput__ + i, DIGITAL_TRUE[i + 1]); } DIGITAL_FALSE = new InOutArray <DigitalOutput>(20, this); for (uint i = 0; i < 20; i++) { DIGITAL_FALSE[i + 1] = new Crestron.Logos.SplusObjects.DigitalOutput(DIGITAL_FALSE__DigitalOutput__ + i, this); m_DigitalOutputList.Add(DIGITAL_FALSE__DigitalOutput__ + i, DIGITAL_FALSE[i + 1]); } ANALOG_VALUE = new InOutArray <AnalogInput>(20, this); for (uint i = 0; i < 20; i++) { ANALOG_VALUE[i + 1] = new Crestron.Logos.SplusObjects.AnalogInput(ANALOG_VALUE__AnalogSerialInput__ + i, ANALOG_VALUE__AnalogSerialInput__, this); m_AnalogInputList.Add(ANALOG_VALUE__AnalogSerialInput__ + i, ANALOG_VALUE[i + 1]); } ANALOG_SET = new InOutArray <AnalogOutput>(20, this); for (uint i = 0; i < 20; i++) { ANALOG_SET[i + 1] = new Crestron.Logos.SplusObjects.AnalogOutput(ANALOG_SET__AnalogSerialOutput__ + i, this); m_AnalogOutputList.Add(ANALOG_SET__AnalogSerialOutput__ + i, ANALOG_SET[i + 1]); } STRING_VALUE = new InOutArray <StringInput>(20, this); for (uint i = 0; i < 20; i++) { STRING_VALUE[i + 1] = new Crestron.Logos.SplusObjects.StringInput(STRING_VALUE__AnalogSerialInput__ + i, STRING_VALUE__AnalogSerialInput__, 9999, this); m_StringInputList.Add(STRING_VALUE__AnalogSerialInput__ + i, STRING_VALUE[i + 1]); } STRING_SET = new InOutArray <StringOutput>(20, this); for (uint i = 0; i < 20; i++) { STRING_SET[i + 1] = new Crestron.Logos.SplusObjects.StringOutput(STRING_SET__AnalogSerialOutput__ + i, this); m_StringOutputList.Add(STRING_SET__AnalogSerialOutput__ + i, STRING_SET[i + 1]); } PORT = new UShortParameter(PORT__Parameter__, this); m_ParameterList.Add(PORT__Parameter__, PORT); IPADDR__DOLLAR__ = new StringParameter(IPADDR__DOLLAR____Parameter__, this); m_ParameterList.Add(IPADDR__DOLLAR____Parameter__, IPADDR__DOLLAR__); for (uint i = 0; i < 20; i++) { DIGITAL_VALUE[i + 1].OnDigitalChange.Add(new InputChangeHandlerWrapper(DIGITAL_VALUE_OnChange_0, false)); } for (uint i = 0; i < 20; i++) { ANALOG_VALUE[i + 1].OnAnalogChange.Add(new InputChangeHandlerWrapper(ANALOG_VALUE_OnChange_1, false)); } for (uint i = 0; i < 20; i++) { STRING_VALUE[i + 1].OnSerialChange.Add(new InputChangeHandlerWrapper(STRING_VALUE_OnChange_2, false)); } MYSERVER.OnSocketConnect.Add(new SocketHandlerWrapper(MYSERVER_OnSocketConnect_3, false)); MYSERVER.OnSocketDisconnect.Add(new SocketHandlerWrapper(MYSERVER_OnSocketDisconnect_4, false)); MYSERVER.OnSocketStatus.Add(new SocketHandlerWrapper(MYSERVER_OnSocketStatus_5, false)); MYSERVER.OnSocketReceive.Add(new SocketHandlerWrapper(MYSERVER_OnSocketReceive_6, false)); _SplusNVRAM.PopulateCustomAttributeList(true); NVRAM = _SplusNVRAM; }