Git Product home page Git Product logo

esp-coap's Introduction

thingTronics ESP8266 12E Arduino Library

This is a Arduino Library for the ESP8266 12E.

ESP-CoAP server/client library for Arduino

This repo contains CoAP protocol for operationg ESP-12E as CoAP server and as CoAp client.

IETF CoAP RFC 7252

RFC 7252 simple server library for Arduino.

Repository Contents

  • /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
  • /src - Source files for the library (.cpp, .h).
  • library.properties - General library properties for the Arduino package manager.
  • library.json - General library properties for the Arduino package manager in JSON format
  • keywords.txt - Contains the keywords for Arduino IDE.

This lightweight library source code have only 4 files. coapServer.cpp, coapServer.h, coapClient.cpp, coapClient.h .

Example

Some sample sketches for Arduino included(/examples/).

  • coapserver.ino: simple server endpoint url callback sample.
  • coapclient.ino: simple client response callback sample.

How to use

Download this source code branch zip file and extract to the Arduino libraries directory or checkout repository. Here is checkout on Ubuntu.

cd $HOME/Downloads/Arduino/libraries/
git clone https://github.com/automote/ESP-CoAP
# restart Arduino IDE, you can find ESP-CoAP examples.

working with CoAP server

  • Upload the server example code to ESP-12E and open Serial Monitor to get the IPaddress of ESP-12E(server)
  • Run the coap client(web browser) with following URI coap://IPaddress:default port number/resource, to connect to ESP-12E server.

working with CoAP client

  • Upload the client example cose to ESP-12E, check the working by taking ETH Zurich as server.

For more information about this library please vist here.

Where to Buy

You can buy the ESP-CoAP compatible modules from us by going to this URL here.

Features

  • Server Side Working:

    • Methods
      • GET
      • PUT
      • POST (update working,creation not working)
      • DELETE (not working)
    • Ping
    • Observe (only 1 resource; only 10 observers)
    • Resource Discovery
    • Block Transfer (WIP)
  • Client Side Working:

    • Methods
      • GET
      • PUT
      • POST
      • DELETE
    • Observe
    • Ping

Maintainers

The ESP-CoAP is maintained by thingTronics Innovations.

Main contributor:

esp-coap's People

Contributors

efriede avatar ka0o0 avatar lovelesh avatar per1234 avatar pravallikanagesh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.