See these pages for the BLE IoT examples that you can use in the nRF5 SDK.
The following examples are available:
BSD Socket
CoAP
DNS
DTLS
ICMP
LWM2M
MQTT
SNTP
TCP
TFTP
UDP