mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user