Arduino-CoAP icon indicating copy to clipboard operation
Arduino-CoAP copied to clipboard

Basic CoAP library for Arduino

Basic CoAP library for arduino. Communication based on XbeeRadio https://github.com/mksense/mac/tree/master/xbee/arduino


  • This branch is working as an implementation of the 8th version of the CoAP protocol.
  • In this branch many things have changed:
    • resource class revamped
    • resources are now internal to coap object using vector type
    • but they can be added / updated / deleted externally
    • buffers are also internal, causing changes to many functions
    • callback function prototypes and usage
    • uri queries are now closer to the standar and allow multiple queries per request
    • apps are now easier to use coap library, with less code needed
  • Not fully tested
    • uri queries are not tested
  • Current TODO list:
    • Make retransmit and observe arrays of vector type
    • Reduce code size
    • Implement random factor for retransmit interval

/******************************************************************************** ** The Arduino-CoAP is free software: you can redistribute it and/or modify ** ** it under the terms of the GNU Lesser General Public License as ** ** published by the Free Software Foundation, either version 3 of the ** ** License, or (at your option) any later version. **


** The Arduino-CoAP is distributed in the hope that it will be useful, ** ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ** ** GNU Lesser General Public License for more details. **


** You should have received a copy of the GNU Lesser General Public ** ** License along with the Arduino-CoAP. ** ** If not, see http://www.gnu.org/licenses/. ** *******************************************************************************/

Current code has been tested and woking on Arduino UNO, and Arduino Pro Mini