I want to use Tcp/IP connection to test out it's working capabilities for a server. I tried searching a sample which does this but was not able to find anything. Could someone suggest how can I use TCP/IP connection with a server?
I want to use Tcp/IP connection to test out it's working capabilities for a server. I tried searching a sample which does this but was not able to find anything. Could someone suggest how can I use TCP/IP connection with a server?
Hi,
This example code from IBM provides a good socket example on how to make a simple C socket client: https://www.ibm.com/docs/en/zos/2.1.0?topic=programs-c-socket-tcp-client
If you use:
Thank you for the Links! I wanted to know if there are any code snippets from Nordic itself as I am quite new to programming in nordic
Thank you for the Links! I wanted to know if there are any code snippets from Nordic itself as I am quite new to programming in nordic
The https_client example made by nordic: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.0/nrf/samples/nrf9160/https_client/README.html
Uses TCP, but then you will need a TCP server it can send HTTPS requests to. HTTPS is an encrypted and more secure version of HTTP, but adds complexity. You can strip the example code down to HTTP. Then you will see that the code is very similar to what the IBM example over looks like, without the HTTP part.