I saw in the user manual the following regarding receiving UDP commands from a PC in EIBPC:
I would like to send an UDP command "light_on" from my PC and have EIBPC, upon receipt, switch on a light.
Could I do this by doing the following (assuming IP and port number and Group Address for the mentioned light are correct for my situation):
Thanks,
Perry
Code:
Port=0u16 IP=0u32 Data1=0;Data2=0;Data3=0 telegram=event(readudp(Port, IP,Data1,Data2,Data3)) if (Port==2243u16) and (IP==122.32.22.1) and telegram then \\ write('3/4/0'u08,Data1); \\ write('3/4/1'u08,Data2); \\ write('3/4/2'u08,Data3) \\ endif
Could I do this by doing the following (assuming IP and port number and Group Address for the mentioned light are correct for my situation):
Code:
Port=0u16 IP=0u32 Data1=light_on telegram=event(readudp(Port, IP,Data1)) if (Port==2243u16) and (IP==122.32.22.1) and telegram then \\ write('3/4/0'u08,"EIN"); \\ endif
Perry
Kommentar