Nanoleaf Updates (#1299)

* Discover additional Nanoleaf devices

* Fix Nanoleaf not turning on

* Added LGTM configuration file

* Allow to pass QJsonObject as payload for put

* Nanoleaf - Support Restore State & Overwrite Brightness

* Removed because this is already included

Co-authored-by: Markus <16664240+Paulchen-Panther@users.noreply.github.com>
This commit is contained in:
LordGrey
2021-08-31 10:55:49 +02:00
committed by GitHub
parent 12cdd1d58a
commit f0bd38d473
5 changed files with 301 additions and 50 deletions

View File

@@ -192,6 +192,13 @@ public:
///
httpResponse get(const QUrl &url);
/// @brief Execute PUT request
///
/// @param[in] body The body of the request in JSON
/// @return Response The body of the response in JSON
///
httpResponse put(const QJsonObject &body);
///
/// @brief Execute PUT request
///
@@ -207,7 +214,7 @@ public:
/// @param[in] body The body of the request in JSON
/// @return Response The body of the response in JSON
///
httpResponse put(const QUrl &url, const QString &body = "");
httpResponse put(const QUrl &url, const QByteArray &body);
///
/// @brief Execute POST request