communication with the XDK using TCP
응답
15. 7. 9 오전 3:14
Hello everyone,

we want the XDK to communicate with several devices in an existing system, which is using the TCP protocoll for communication. Since the “WNS_wifiNetworkSend” is using UDP and it seems like TCP is currently not implemented, I am asking you if anyone has any experience with implementing TCP communication on the XDK?
If yes, is there maybe some code available?

Thank you for your help!
Best regards, Chris
0 (0 투표)
communication with the XDK using TCP
응답
15. 7. 9 오후 8:44 as a reply to Wang Ben.
Hello Chris,

Unfortunately, there is no sample code for a TCP connection.
But the XDK framework supports HTTP and therefore TCP connections too.
You can find the well documented API at:

../your_project/SDK/lib/ServalStack/pal/Serval_Tcp.h

Regards,
Manuel
0 (0 투표)
communication with the XDK using TCP
응답
15. 7. 10 오전 1:29 as a reply to Manuel Cerny.
Hello Manuel,

thank you for your fast response!
I will have a try with the header file you told me about.

Best regards, Chris
0 (0 투표)
communication with the XDK using TCP
응답
15. 7. 24 오후 1:57 as a reply to Wang Ben.
Isn't the code within the DSM_demoSensorMonitor example usind TCP sockets?

BR,
Florian
0 (0 투표)
communication with the XDK using TCP
응답
15. 7. 24 오후 5:42 as a reply to Florian Dittrich.
Hi Florian,

DSM_demoSensorMonitor uses in fact TCP sockets but this demo directly implements the component driver TI Simple Link.
The API „Serval_Tcp“ which is included in the XDK is also based on simple link and makes you a much easier interface available.

Regards,
Manuel
0 (0 투표)