fablabbcn / smartcitizen-api

The Smart Citizen Engine
https://developer.smartcitizen.me
GNU Affero General Public License v3.0
10 stars 4 forks source link

Forwarding of device data #318

Closed timcowlishaw closed 1 month ago

timcowlishaw commented 2 months ago

WIP on #226.

Includes the creation of forwarding tokens for users and logic to decide whether or not to forward, plus the machinery for doing the forwarding. It's involved a bit more refactoring work than i thought as we need to manage the MQTT client object lifecycle a bit more carefully and pass it around to where its needed. For further discussion and testing on staging on Friday!

timcowlishaw commented 2 months ago

We should merge #317 first, but this now uses the API device representation as the forwarded payload, and is ready for testing!