使用.NET进行C#远程处理 [英] C# remoting using .net

查看:83
本文介绍了使用.NET进行C#远程处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要以数据形式进行通信.例如(我需要在一个具有静态IP的站点中连接一个温度传感器,并且要与传感器连接并在我的PC中读取并保存数据)
要解决此问题,我需要采取什么步骤,如果可以的话,请给我发送任何示例代码或说明来演示该功能.

解决方案

请咨询SDK或有关温度传感器的手册,并了解如何与之通信以读取值.

如果它是TCP/IP设备,则可以使用.net框架中的TcpClient类通过网络发送数据并读取值.


i need to perform a communication in the forms of data. for example(i need to connect a temperature sensor in one of the site it has a static ip and in want to connect with sensor and read & save the data in my pc)
to solve this what is the step i need to take and if it is possible please send me any sample coding or instructions to demonstrate this function.

解决方案

Consult the SDK or manual for the temperature sensor and see how you can communicate with it to read values.

If it is a TCP/IP device then you can use TcpClient class in the .net framework to send data over the network and read values.


这篇关于使用.NET进行C#远程处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆