Open source C library for the photon3 protocol