Fixed Blynk power button and settings
This commit is contained in:
parent
34ddf104a9
commit
a122c17340
@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
|
|
||||||
//version code in format yymmddb (b = daily build)
|
//version code in format yymmddb (b = daily build)
|
||||||
#define VERSION 1810064
|
#define VERSION 1810081
|
||||||
char versionString[] = "0.8.0";
|
char versionString[] = "0.8.0";
|
||||||
|
|
||||||
|
|
||||||
|
@ -241,6 +241,7 @@ void getSettingsJS(byte subPage) //get values for settings form in javascript
|
|||||||
sappend('c',"AL",alexaEnabled);
|
sappend('c',"AL",alexaEnabled);
|
||||||
sappends('s',"AI",alexaInvocationName);
|
sappends('s',"AI",alexaInvocationName);
|
||||||
sappend('c',"SA",notifyAlexa);
|
sappend('c',"SA",notifyAlexa);
|
||||||
|
sappends('s',"BK",(char*)((blynkEnabled)?"Hidden":""));
|
||||||
sappends('s',"MS",mqttServer);
|
sappends('s',"MS",mqttServer);
|
||||||
sappends('s',"MD",mqttDeviceTopic);
|
sappends('s',"MD",mqttDeviceTopic);
|
||||||
sappends('s',"MG",mqttGroupTopic);
|
sappends('s',"MG",mqttGroupTopic);
|
||||||
|
@ -21,14 +21,14 @@ void handleBlynk()
|
|||||||
void updateBlynk()
|
void updateBlynk()
|
||||||
{
|
{
|
||||||
if (onlyAP) return;
|
if (onlyAP) return;
|
||||||
Blynk.virtualWrite(V0,bri);
|
Blynk.virtualWrite(V0, bri);
|
||||||
//we need a RGB -> HSB convert here
|
//we need a RGB -> HSB convert here
|
||||||
Blynk.virtualWrite(V3,bri);
|
Blynk.virtualWrite(V3, bri? 1:0);
|
||||||
Blynk.virtualWrite(V4,effectCurrent);
|
Blynk.virtualWrite(V4, effectCurrent);
|
||||||
Blynk.virtualWrite(V5,effectSpeed);
|
Blynk.virtualWrite(V5, effectSpeed);
|
||||||
Blynk.virtualWrite(V6,effectIntensity);
|
Blynk.virtualWrite(V6, effectIntensity);
|
||||||
Blynk.virtualWrite(V7,nightlightActive);
|
Blynk.virtualWrite(V7, nightlightActive);
|
||||||
Blynk.virtualWrite(V8,notifyDirect);
|
Blynk.virtualWrite(V8, notifyDirect);
|
||||||
}
|
}
|
||||||
|
|
||||||
BLYNK_WRITE(V0)
|
BLYNK_WRITE(V0)
|
||||||
|
Loading…
Reference in New Issue
Block a user