/// <summary> /// Initialise and establish the connection. The socket is the same used by ListenSocketservices class /// </summary> /// <param name="ip">Unique IP address of each NodeMCU monitoring the PIR status</param> /// <param name="socket">ListenSocketservices which is common for all devices</param> public void EstablishConnection(string ip, string socket) { SSI.Initialise(ip, socket); //Send a Hello packet so the host can store the address though not required as it is hard coded SSI.SendMessageToHost(Constants.HELLO); }
/// <summary> /// Establish connection. IP is unique while Socket is same for all light dimmers /// </summary> /// <param name="ip">Unique IP address</param> /// <param name="socket">Common Socket for all Light dimmers</param> public void EstablishConnection(string ip, string socket) { SSL.Initialise(ip, socket); }