Feedback
Feedback

If you are having issues with the exercises, please create a ticket on DevZone: devzone.nordicsemi.com
Click or drag files to this area to upload. You can upload up to 2 files.

Lesson 5 – Sending and receiving messages over CoAP

Overview

Which application protocol to use depends on the transport layer protocol you have selected for data delivery in the application. In this lesson, we will cover the commonly used UDP-based transport protocol CoAP. We will explain the basic principles of the communication protocol and explain how the library in the nRF Connect SDK is used.

In the exercises section, you will practice how to use the CoAP protocol and library to connect to a CoAP server and send and receive data through GET requests and PUT requests, and how to configure another CoAP client to remotely access that information.

Objectives

  • Understand the advantages and disadvantages of using TCP-based and UDP-based application protocols.
  • Examine the CoAP protocol and learn how to add and use the CoAP protocol in your application.
  • Practice through hands-on exercises how to utilize CoAP in an application to establish bi-directional communication with another CoAP client.
  • Practice how to encrypt a CoAP connection using DTLS.
Register an account
Already have an account? Log in
(All fields are required unless specified optional)

  • 8 or more characters
  • Upper and lower case letters
  • At least one number or special character

Forgot your password?
Enter the email associated with your account, and we will send you a link to reset your password.