/examples

Simple code snippets to work with flespi

Primary LanguageHTMLMIT LicenseMIT

flespi.io usage examples

Changelog on forum

HTTP stream receiver

More info about http streams: https://flespi.com/blog/get-data-in-your-platform-via-flespi-http-stream

In short:

  1. create a stream in flespi platform, using http as configuration and something like http://your-server:port/path-on-server as uri parameter
  2. subscribe created stream to items you need
  3. deploy one of examples listed above on your server or VPS
  4. configure your example to listen on your-server:port network endpoint and to handle a /path-on-server uri
  5. flespi platform will constantly deliver a batch of messages to your deployment

MQTT client examples

MQTT client source code examples using the flespi broker on nodejs, python, python on windows, lua, browser, micropython (esp8266), etc...

MQTT channel message handler

Snapshots downloader tool

Devices creation tool

This tool may help you to create many devices in your flespi.io account.

Contributing

If you have cool examples of flespi API usage or have time and zeal to write examples on your preferred language, you are welcome to contribute by making a pull request or contact us on the forum.