Skip to content

htotoo/SProto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SProto

C++ communication protocol. Feaqtures:

  • Easily expandable with inheritance.
  • Small packet lengths, minimal overhead.
  • Expandable crypto, with example (XOR), so can use over radio too.
  • Dynamically add data to packet.
  • Measurement data typed by content, eg Temperature, or Humidity, so content can be identified easily.
  • Helper functions to send data to MQTT broker.
  • Helper class ( SProtoServer ) to keep track of stations and sensors. New and already seen, and also expiration handling.
  • Helper class ( SProtoParseHelper ) to help parse data from serial / radio, where you won't get the whole paket at once.

This is a work in progress lib, with a lot of limitations! Use with cautions. If you want to improve it, send a PR, or ask for a feature.

Usage:

See the example. For now, you should edit the config.h if you want to change some parameters.

For real world usage check my LoRa car alarm system project: https://github.com/htotoo/SLoraTracker

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published