Skip to content

Repository files navigation

Mule CoAP Connector examples

Mule-Coap logo

Mule CoAP Connector is a Mule extension that enables Mule 4 applications to implement IoT services and/or IoT clients that make use of the CoAP protocol. The CoAP protocol is specified by RFC7252 - Constrained Application Protocol and other specifications.

This project contains examples that show how the connector can be used in Mule 4 applications to realize IoT solutions.

Mule supported versions

Mule CoAP Connector v3 supports Mule 4.3+. This examples project uses Mule 4.9, but can be converted to later versions with little effort.

Usage

The examples can be examined here or you can import this project into your Anypoint Studio 7 workspace by cloning the Git repository. When cloning the Mule version in the project needs to be changed to a version available in your Studio installation. The workings of the examples are demonstrated in Studio by running the project as Mule-Application. A simple web-gui is then started and accessible at: http://localhost:8081/

##Examples

The examples demonstrate how the various CoAP functions can be implemented in a Mule application. The examples contained in the project are:

  • Simple request examples, showing basic CoAP operations like GET and PUT.
  • Observe resource examples, that demonstrate how clients are notified in an event-driven manner when CoAP resources on a server change.
  • Multicast example with a client sending a multicast request to which multiple servers respond.
  • Example of the use of entity tags that enable CoAP clients and servers to communicate efficiently and reliably.
  • Other Option example showing the use of custom header properties in CoAP messages.

A simple CoAP client

simple client example

A simple CoAP server

simple server example

Mule CoAP examples user interface

examples user interface

About

CoAP examples using Mule CoAP Connector

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages