문제

I'm working on a program that connects to different brands of plc's and therefor uses different protocols to communicate with them. I have found a nice little library (Click for library project page) to implement the Modbus Protocol. it worked like a charm when i've tested it (in console). But now i want to implement it on my windowsphone application it comes up with some errors of namespaces not being found.

After some time on google i've found out that the silverlight frame work does not implement the: System.Net.Sockets.TcpClient Namespace

Therefor i can't use this library.. Is their any "simple" work around to overcome this problem?

도움이 되었습니까?

해결책

Although there is socket support in the Mango version of the Windows Phone 7 SDK, TcpClient itself still isn't supported. It's entirely possible that the library you want to use would try to use the synchronous APIs anyway - only the asynchronous socket operations are supported in System.Net.Sockets.Socket.

You should have a look at the library you want to use and see how hard it would be to make it use the asynchronous operations on Socket directly - and I'd suggest asking on the modbus mailing list to see if anyone's already done this.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top