HTTP bridge and python (OSC)


hi
i did similar https://github.com/alnitak1000/touchosc-to-control-an-arduino-yun/blob/master/touchosc.py

but want users give ip in http change python :
code: [select]
json = tcpjsonclient('127.0.0.1', 5700)
ipyun = value.get ('ipyun')
ippc = value.get ('ippc')
server = oscserver( (ipyun, 8000) )
client = oscclient()
client.connect( (ippc, 9000) )


and in arduino side put code it.... works till use these command in arduino side:
code: [select]

process p;
p.runshellcommandasynchronously("python /mnt/sda1/arduino/www/myfolder/myfile.py");


i know happens because python part starts before having ip , try put if command (like :
code: [select]
if (ipyun1== 192 && ippc1== 192)before doesn't work again....

you're vague. more specific. remember no 1 here knows rest of code you've written. think granny: explain granny can understand


Arduino Forum > Products > Arduino Yún (Moderator: fabioc84) > HTTP bridge and python (OSC)


arduino

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support