Skip to content

OBSOLETE C++ Implementation of UbSub UDPv1 protocol for embedded systems

Notifications You must be signed in to change notification settings

ubsub/ubsub-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE: DEPRECATED

This library has been deprecated in favor of a router-negotiating, encrypted, version you can find here

UbSub-CPP

Build Status

C++ Client and UDP verification for UbSub.io.

This client will allow for sending/receiving V1 UDP datagrams to trigger events on UbSub.

Currently, all you need is the sha256 and ubsub files. In ubsub.h you'll find all exposed functions for various embedded platforms (including libc/unix compatibility).

Usage

Usage can be as simple as sending an event. eg:

#include "ubsub.h"
int main() {
	sendEvent("topicId", "topicKey", "hi there");
	return 0;
}

Compatability

  • Unix/Linux
  • Arduino
  • Particle
  • ESP8266 Boards

Building

For building/testing locally, we use platformio to build against embedded frameworks, and also compile against linux/unix. This is the main file and what the build system uses.

We've also included a Makefile to build and test locally on a unix-based system if you don't want to install platformio.

Third Party

CryptoSuite

Sha256 implementation is from Cathedrow/Cryptosuite with small modifications for compatibility.

License

Copyright (c) 2017 Christopher LaPointe

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

OBSOLETE C++ Implementation of UbSub UDPv1 protocol for embedded systems

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published