[PD] Using netsend to send url / text to turn a device on and off

RT ratulloch at gmail.com
Thu Jan 24 20:20:18 CET 2019


This is what I'm using I can connect and disconnect but the command syntax
coming out of Pd seems to be incorrect.

#N canvas 293 155 710 697 10;
#X msg 241 186 disconnect;
#X floatatom 303 547 0 0 0 0 - - -;
#X obj 378 555 print;
#X obj 329 128 fudiformat;
#X obj 329 53 symbol on;
#X obj 331 180 t l l;
#X obj 359 218 list length;
#X obj 361 250 - 2;
#X obj 327 299 list split;
#X obj 327 390 list prepend send;
#X obj 325 446 list trim;
#X obj 325 492 netsend -b;
#X obj 325 337 list append 13 10 13 10;
#X obj 390 159 print;
#X msg 329 89 GET /relay/0/?turn=\$1 HTTP/1.0;
#X msg 95 253 connect 192.168.1.123 80;
#X connect 0 0 11 0;
#X connect 3 0 5 0;
#X connect 3 0 13 0;
#X connect 4 0 14 0;
#X connect 5 0 8 0;
#X connect 5 1 6 0;
#X connect 6 0 7 0;
#X connect 8 0 12 0;
#X connect 9 0 10 0;
#X connect 10 0 11 0;
#X connect 11 0 2 0;
#X connect 11 0 1 0;
#X connect 11 1 2 0;
#X connect 12 0 9 0;
#X connect 14 0 3 0;
#X connect 15 0 11 0;


On Thu, Jan 24, 2019 at 1:38 PM Roman Haefeli <reduzent at gmail.com> wrote:

> On Thu, 2019-01-24 at 18:24 +0100, Jack wrote:
>
> > I guess you mean [list fromsymbol] to convert symbols to their
> > byte-representation ? ;)
>
> Have you tried [fudiformat]?
>
> I think IOhannes actually meant it.
>
> Roman
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>


-- 
-- 
|======================================================|
|https://stillpointx.wordpress.com/research/modulated-plasma/

|======================================================|
"Knowledge may be the Key"
"But wisdom unlocks the door"
"Absolute Power demands absolutely nothing"

As the old maxim has it, you need find only one white crow to disprove the
rule that all crows are black

"The bourgeois today burns as heretics and hangs as criminals those to whom
he erects monuments tomorrow" ('Steppenwolf')

"There are two modes of being those in bliss and those seeking bliss,
may each step you take and each thought you make be made in a mindful and
blissful state."
|======================================================|
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20190124/3e83b741/attachment.html>


More information about the Pd-list mailing list