<div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:small;color:rgb(0,0,0)" class="gmail_default"><br>I'm trying to turn on and off a device using Pd by sending a URL. At the moment to turn the device on I just type in a url in the browser and to turn it off I type in another one url .<br>To turn the device on I send <a href="http://192.168.1.123/relay/0/?turn=on">http://192.168.1.123/relay/0/?turn=on</a><br>To turn the device off I send <a href="http://192.168.1.123/relay/0/?turn=off">http://192.168.1.123/relay/0/?turn=off</a> <br><br>I can connect to the device using <b>connect</b> and <b>netsend</b> but I couldn't find an example / correct syntax / format on how to send the required url out of Pd.</div><div style="font-size:small;color:rgb(0,0,0)" class="gmail_default"><br></div><div style="font-size:small;color:rgb(0,0,0)" class="gmail_default">This is what I'm using below</div><div style="font-size:small;color:rgb(0,0,0)" class="gmail_default"><br></div><div style="font-size:small;color:rgb(0,0,0)" class="gmail_default">#N canvas 162 516 623 513 10;<br>#X msg 535 750 \; pd dsp 1;<br>#X obj 536 724 loadbang;<br>#X obj 248 207 netsend;<br>#X msg 272 110 disconnect;<br>#X floatatom 218 272 0 0 0 0 - - -;<br>#X obj 280 275 print;<br>#X msg 403 171 send /relay/0/?turn=off;<br>#X msg 404 136 send /relay/0/?turn=on;<br>#X msg 184 67 connect 192.168.1.123 80;<br>#X connect 1 0 0 0;<br>#X connect 2 0 4 0;<br>#X connect 2 0 5 0;<br>#X connect 2 1 5 0;<br>#X connect 3 0 2 0;<br>#X connect 6 0 2 0;<br>#X connect 7 0 2 0;<br>#X connect 8 0 2 0;<br></div><div style="font-size:small;color:rgb(0,0,0)" class="gmail_default"><br></div><div style="font-size:small;color:rgb(0,0,0)" class="gmail_default"><br></div><br></div></div></div>