I’ve been using the MQTT-TLS library to connect/pipeline with a local raspi. It was relatively painless to set up. But, unfortunately, has a couple drawbacks. One, is it doesn’t seem to be stable. I’m not sure exactly where the problem lies, but it’s dropping connection often enough to be frustrating. And, two, the library itself takes up a lot of FLASH space on my photon — too much for my liking.
Since MQTT is becoming quite the standard today for communication of IoT devices to local/remote servers, is Particle.io working on a built in firmware API? That would be super sweet if it’s the case. It’s certainly needed!