glowfishAPI / httpsclient-particle

An httpsclient implementation for particle.io's photon
GNU General Public License v2.0
69 stars 23 forks source link

Overview

Designing this with IOT in mind. Most webservers willing to collect data from devices prefer talking https. Securing communication to-and-from smaller footprint devices (like particle.io Photon etc.) and standard web servers doing interesting stuff with this data (glowfi.sh, thingspeak.com, etc) is the goal. There is a hard limitation you hit with https and that dictates that you have about 50kB of meemory allocated for it. This is because of huge Certificate chains that get shipped from https servers.

In all this, lack of a readily available plug and play httpsclient brings us here. Integrating MatrixSSL with a standard TCP client seemed like a good starting point.

Any feedback (especially critical) and contributions are welcome!

Building it with Web IDE

Building it locally with spark firmware

Assuming you are comfortable using spark firmware library located: https://github.com/spark/firmware

Current State

What's here is a semi-stable working httpsclient that can make requests from the particle photon board to webservers running https. The client implementation is simple, and as of now can handle 1 connection at any given time. Other features (for now) are:

Adhere to security

Small memory footprint:

License:

GPL, as matrixSSL-open library is under GPL.

A few important changes from MatrixSSL:

TODO: