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)

Forgot your password?
Enter your email address, and we will send a link to reset your password.