i use 2 options:

A) for osx and linux with ggee's shell

[curl -s http://192.168.1.123/relay/0/?turn=on(
|
[ggee/shell]

B) for win/lin/osx i prefer

[http://192.168.1.123/relay/0/?turn=on(
|
[mrpeach/httpreq]
|
|  [connect 192.168.1.123 80(
|  /
[mrpeach/tcpclient]


liebe grüße
marco

Am 24.01.19 um 21:11 schrieb Martin Peach:
On Thu, Jan 24, 2019 at 11:36 AM RT <[email protected] <mailto:[email protected]>> wrote:


    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 .
    To turn the device on I send http://192.168.1.123/relay/0/?turn=on
    To turn the device off I send http://192.168.1.123/relay/0/?turn=off

If you don't have to use vanilla Pd it's easier to use [httpreq] and [tcpclient].

Martin


_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list




_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list

Reply via email to