Skip to content

Instantly share code, notes, and snippets.

@rickkas7
rickkas7 / softaporserver.cpp
Created January 7, 2017 14:08
Proof of concept example for using SoftAP or a local web server with a Particle Photon
#include "Particle.h"
#include "softap_http.h"
SYSTEM_THREAD(ENABLED);
const int FOR_SOFTAP_SERVER = 0x0001;
const int FOR_LOCAL_SERVER = 0x0002;
// [start b4dea613-4f5a-47ac-b70e-e4d50d19e7f9]
// name=/image.jpg contentType=image/jpeg size=18516 modified=2017-01-07 08:46:11

Keybase proof

I hereby claim:

  • I am rickkas7 on github.
  • I am rickkas7 (https://keybase.io/rickkas7) on keybase.
  • I have a public key whose fingerprint is 56F6 38A3 0535 0B72 860D 89F1 AB30 BD36 E413 970B

To claim this, I am signing this object: