I was trying to get more details on the OpenBecken function 'SendGet' but can't seem to find any references to it.
I know for example it's possible to pass on a declaration to turn on a switch on another tasmota / Open Becken device with a command such as:
And since we're here, what does this piece at the end of the code do?
Also, what's the best way to mix this function with some variables, for example where I can have a separate array with the IP address and the final 1/0 to toggle the output? Would the best way be to store these on a buffer using sprintf?
One example I put together (not actual working code)
Or is there a nicer way to do it?
Thanks!
I know for example it's possible to pass on a declaration to turn on a switch on another tasmota / Open Becken device with a command such as:
http://192.168.5.23/cm?cmnd=Power%201, 0"And since we're here, what does this piece at the end of the code do?
,0Also, what's the best way to mix this function with some variables, for example where I can have a separate array with the IP address and the final 1/0 to toggle the output? Would the best way be to store these on a buffer using sprintf?
One example I put together (not actual working code)
sprintf(buffer, "SendGet http://192.168.1.%d/cm?cmnd=Power%20%d",myip,myvar);
CMD_ExecuteCommand("buffer", 0);
Or is there a nicer way to do it?
Thanks!