Fixed Blynk power button and settings

This commit is contained in:
cschwinne 2018-10-08 17:36:22 +02:00
parent 34ddf104a9
commit a122c17340
3 changed files with 9 additions and 8 deletions

View File

@ -45,7 +45,7 @@
//version code in format yymmddb (b = daily build)
#define VERSION 1810064
#define VERSION 1810081
char versionString[] = "0.8.0";

View File

@ -241,6 +241,7 @@ void getSettingsJS(byte subPage) //get values for settings form in javascript
sappend('c',"AL",alexaEnabled);
sappends('s',"AI",alexaInvocationName);
sappend('c',"SA",notifyAlexa);
sappends('s',"BK",(char*)((blynkEnabled)?"Hidden":""));
sappends('s',"MS",mqttServer);
sappends('s',"MD",mqttDeviceTopic);
sappends('s',"MG",mqttGroupTopic);

View File

@ -21,14 +21,14 @@ void handleBlynk()
void updateBlynk()
{
if (onlyAP) return;
Blynk.virtualWrite(V0,bri);
Blynk.virtualWrite(V0, bri);
//we need a RGB -> HSB convert here
Blynk.virtualWrite(V3,bri);
Blynk.virtualWrite(V4,effectCurrent);
Blynk.virtualWrite(V5,effectSpeed);
Blynk.virtualWrite(V6,effectIntensity);
Blynk.virtualWrite(V7,nightlightActive);
Blynk.virtualWrite(V8,notifyDirect);
Blynk.virtualWrite(V3, bri? 1:0);
Blynk.virtualWrite(V4, effectCurrent);
Blynk.virtualWrite(V5, effectSpeed);
Blynk.virtualWrite(V6, effectIntensity);
Blynk.virtualWrite(V7, nightlightActive);
Blynk.virtualWrite(V8, notifyDirect);
}
BLYNK_WRITE(V0)