The CoapGateway
architecture is simple and straightforward. The following illustration shows the available classes and their internal relationships. Classes that are colored off-white are defined in Clayster.Library.Abstract
. The yellow/orange colored classes are defined in Clayster.Library.Meters
and provide the basic functionality for the Topology
data source. The blue classes are defined in Clayster.Library.Internet
, and in our case, they provide us with communication capabilities. We have used these classes in our previous chapters. The green and pink classes are defined in our CoapGateway
project. The color green represents structural nodes, while pink represents classes performing concrete work. All these classes are defined in the .cs
files with the same name in the downloadable source code.
To add support for CoAP to the Clayster platform, you need to begin by adding a CoapPort
object to the root of the topology. This object performs the...