Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

NodeMCU with TCP or UDP

Still a little green? Ask your beginner's questions here

NodeMCU with TCP or UDP

Postby mateoman » Wed Jul 31, 2019 10:29 am

Hey guys,
I have a new project where i want to send data from a NodeMCU (ESP8266 ESP12E) and recieve it in TD in any type. Its just a value from an ultrasonic sensor which reads about 20 values per second. I just cant quiet find a information source on this or a point to start. I know how to send data from the Node MCU but cant figure out how to set it up in TD. Ill be thanktful for any information sources, or guides how to do this. Thanks in advance, Mateo
mateoman
 
Posts: 7
Joined: Thu Aug 18, 2016 9:24 pm

Re: NodeMCU with TCP or UDP

Postby nettoyeur » Fri Aug 02, 2019 5:02 am

It seems it is sort of a Arduino-like board, so maybe this page with example code helps:
https://docs.derivative.ca/Arduino
Idzard Kwadijk | freelance TouchDesigner consultant | IdzArd.com
Checkout ChopChopChop.org - the TouchDesigner marketplace!
nettoyeur
 
Posts: 1168
Joined: Mon Oct 15, 2012 12:00 pm
Location: Amsterdam, The Netherlands

Re: NodeMCU with TCP or UDP

Postby mateoman » Fri Aug 02, 2019 9:01 am

Thanks, i allready found this page and allready had a project where I used Arduinos via serial port. My main problem is that im not that good with python and dont know how to recieve messages via UDP (I found out that UDP will be the way to go). And i still dont understand how to set up the UDP client on the NodeMCU but i think ill figure that out soon.
mateoman
 
Posts: 7
Joined: Thu Aug 18, 2016 9:24 pm

Re: NodeMCU with TCP or UDP

Postby nettoyeur » Fri Aug 02, 2019 11:45 am

check Help->Operator Snippets , the OSC In DAT.
There are all examples how to work with the network operators, such as the UDP In DAT.

If you push the send button in the first example you'll see UDP messages coming in.
Idzard Kwadijk | freelance TouchDesigner consultant | IdzArd.com
Checkout ChopChopChop.org - the TouchDesigner marketplace!
nettoyeur
 
Posts: 1168
Joined: Mon Oct 15, 2012 12:00 pm
Location: Amsterdam, The Netherlands

Re: NodeMCU with TCP or UDP

Postby mateoman » Mon Aug 05, 2019 8:03 am

So i allready figured out how to set up the Node MCU and can receive messages with a UDP Sender Software but in TD i receive nothing. In the UDP In Dat i dont have a possibility to set up the IP of the Node MCU. I guess thats the Problem but i dont know what to do to set it up. Anyway thanks for the snippet. It showed me how to program the output of the received messages.
mateoman
 
Posts: 7
Joined: Thu Aug 18, 2016 9:24 pm

Re: NodeMCU with TCP or UDP

Postby circat » Tue Aug 20, 2019 7:43 am

Hey,its work in progress but this could help you out ! :)
https://github.com/circat/Wireless-OSC-Controller
circat
 
Posts: 13
Joined: Fri Nov 02, 2018 5:45 pm
Location: Berlin


Return to Beginners

Who is online

Users browsing this forum: No registered users and 16 guests