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!

 Accepted Answer

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

1 Comment

Hello,
Is the Instrument Control Toolbox available in Student Edition of Matlab? How can I find it?
Regards

Sign in to comment.

More Answers (0)

Categories

Find more on Instrument Control Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!