How to get data from wifi through TCP/IP?

I am trying to get the data from wifi through TCP. I have found an example code online, but it seems not working well.
1.How can I listen to a TCP server's port in a particular IP address? In the example code, there is a function: interfaceObject = tcpip('localhost',19); How does the function tcpip()works? Why can't I find it in the function browser?
2. If I want to collect data from RS232, there are functions like: YY = serial('COM1'); fopen (YY); data=fscanf(YY); Are there functions playing similar roles in TCP?
Thank you!

 Respuesta aceptada

Walter Roberson
Walter Roberson el 25 de Feb. de 2013

0 votos

tcpip() is part of the Instrument Control Toolbox.
There is also a File Exchange contribution named "tcpudpip" that can be used.

1 comentario

YUMENG
YUMENG el 25 de Feb. de 2013
Hello,
Is the Instrument Control Toolbox available in Student Edition of Matlab? How can I find it?
Regards

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Instrument Control Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by