Skip to content

tosscaster/coap-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coap-server

A quick demo built up with coap-shepherd.

Table of Contents

  1. Overview
  2. Installation
  3. Usage

1. Overview

Here is a quick demo app that show you what coap-shepherd can do, e,g,. allow devices to join, control devices. You can use this quick demo as a basis to create your own CoAP Web Application.

2. Installation

$ git clone https://github.com/tosscaster/coap-server.git
$ cd coap-server
/coap-server $ npm install

3. Usage

Just need to type npm start in the console, server will start running.

/coap-server $ npm start

When you first press the PERMIT JOIN button, server will create a few fake peripherals, used to display some simple applications. During this period, the real peripheral device can not join the network until the end of the first permit join.

The following figure shows the entire process from server startup to the first permit join end.

coap-shepherd demo