You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usingThreeByte.LinkLib.ProjectorLink;// Connect to a projector (default PJLink port 4352)usingvarprojector=newProjector("192.168.1.200");// Power onboolsuccess=projector.TurnOn();Console.WriteLine(success?"✅ Projector turning on":"❌ Power on failed");// Query statePowerStatusstatus=projector.GetState();Console.WriteLine($"Status: {status}");// Output: Status: WARMUP → ON// Get device infostringinfo=projector.GetInfo();Console.WriteLine($"Projector: {info}");// Output: Projector: Epson EB-L1755U (Main Hall)// Power offprojector.TurnOff();
With Authentication
// Some projectors require a passwordusingvarprojector=newProjector("192.168.1.200",password:"admin123");projector.ErrorOccurred+=(s,ex)=>Console.WriteLine($"Projector error: {ex.Message}");projector.TurnOn();
Projector(stringhost)// Default port 4352, no auth
Projector(stringhost,intport)// Custom port, no auth
Projector(stringhost,stringpassword)// Default port, with auth
Projector(stringhost,intport,stringpassword)// Custom port + auth