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

Martin Peach chakekatzil at gmail.com
Thu Jan 24 21:11:10 CET 2019


On Thu, Jan 24, 2019 at 11:36 AM RT <ratulloch at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20190124/7ba6a060/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: relay_control_by_http.pd
Type: application/octet-stream
Size: 610 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20190124/7ba6a060/attachment.obj>


More information about the Pd-list mailing list