Hello to all,
I hope someone could help me to configure out my simple project i’m newbe with openhub and i’m trying to send two different commands to one specific ip address, normally other programming languages, for example with python if i have to activate one relay I have to use the command below:
s.sendto('RELAY-SET-1,1,1'.encode(),('192.168.1.210', 4196)) #Turn First Light ON
for power of the same ralay I have to:
s.sendto('RELAY-SET-1,1,0'.encode(),('192.168.1.210', 4196)) #Turn First Light OFF
192.168.1.210 → ip of my device
4196 → comunication port
RELAY-SET-1,1,0 → RELAY-SET- 1, “first ralay”,“if = 0 status is off, if = 1 status is on”
thanks to all in advance
Luca