mirror of
https://github.com/nymea/nymea-plugins.git
synced 2026-08-05 03:33:51 +02:00
go-e: Update force state to actually force on
This commit is contained in:
parent
c348e099d5
commit
45bdeeccd2
@ -342,7 +342,7 @@ void IntegrationPluginGoECharger::executeAction(ThingActionInfo *info)
|
|||||||
// The url query has to be JSON encoded, i.e. <url>/set?fna="mein charger"
|
// The url query has to be JSON encoded, i.e. <url>/set?fna="mein charger"
|
||||||
QUrlQuery configuration;
|
QUrlQuery configuration;
|
||||||
// 0 neutral (prefere on), 1 off, 2 on force
|
// 0 neutral (prefere on), 1 off, 2 on force
|
||||||
configuration.addQueryItem("frc", (power ? "0": "1"));
|
configuration.addQueryItem("frc", (power ? "2": "1"));
|
||||||
QNetworkRequest request = buildConfigurationRequestV2(address, configuration);
|
QNetworkRequest request = buildConfigurationRequestV2(address, configuration);
|
||||||
QNetworkReply *reply = hardwareManager()->networkManager()->get(request);
|
QNetworkReply *reply = hardwareManager()->networkManager()->get(request);
|
||||||
connect(info, &ThingActionInfo::aborted, reply, &QNetworkReply::abort);
|
connect(info, &ThingActionInfo::aborted, reply, &QNetworkReply::abort);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user