Version Bump to 2.2.4
Version Bump to 2.2.4
This commit is contained in:
@@ -54,8 +54,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(ARDUINOJSON_VERSION)
|
#if defined(ARDUINOJSON_VERSION)
|
||||||
#if !(ARDUINOJSON_VERSION_MAJOR == 6 and ARDUINOJSON_VERSION_MINOR == 10)
|
#if !(ARDUINOJSON_VERSION_MAJOR == 6 and ARDUINOJSON_VERSION_MINOR >= 8)
|
||||||
#error "Install ArduinoJson v6.10.x"
|
#error "Install ArduinoJson v6.8.x or higher"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -1708,17 +1708,17 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t * payload, size_t lenght
|
|||||||
strcpy(HOSTNAME, root["hostname"]);
|
strcpy(HOSTNAME, root["hostname"]);
|
||||||
#if defined(ENABLE_MQTT)
|
#if defined(ENABLE_MQTT)
|
||||||
strcpy(mqtt_host, root["mqtt_host"]);
|
strcpy(mqtt_host, root["mqtt_host"]);
|
||||||
mqtt_port = (uint16_t) root["mqtt_port"];
|
mqtt_port = root["mqtt_port"].as<uint16_t>();
|
||||||
strcpy(mqtt_user, root["mqtt_user"]);
|
strcpy(mqtt_user, root["mqtt_user"]);
|
||||||
strcpy(mqtt_pass, root["mqtt_pass"]);
|
strcpy(mqtt_pass, root["mqtt_pass"]);
|
||||||
#endif
|
#endif
|
||||||
WS2812FXStripSettings.stripSize = constrain ((uint16_t) root["ws_cnt"], 1, MAXLEDS);
|
WS2812FXStripSettings.stripSize = constrain(root["ws_cnt"].as<uint16_t>(), 1, MAXLEDS);
|
||||||
char tmp_rgbOrder[5];
|
char tmp_rgbOrder[5];
|
||||||
strcpy(tmp_rgbOrder, root["ws_rgbo"]);
|
strcpy(tmp_rgbOrder, root["ws_rgbo"]);
|
||||||
checkRGBOrder(tmp_rgbOrder);
|
checkRGBOrder(tmp_rgbOrder);
|
||||||
uint8_t temp_pin;
|
uint8_t temp_pin;
|
||||||
checkPin((uint8_t) root["ws_pin"]);
|
checkPin((uint8_t) root["ws_pin"]);
|
||||||
WS2812FXStripSettings.fxoptions = ((constrain((uint8_t) root["ws_fxopt"], 0, 255)>>1)<<1);
|
WS2812FXStripSettings.fxoptions = ((constrain(root["ws_fxopt"].as<uint8_t>(), 0, 255) >> 1) << 1);
|
||||||
jsonBuffer.clear();
|
jsonBuffer.clear();
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
@@ -1785,22 +1785,22 @@ void webSocketEvent(uint8_t num, WStype_t type, uint8_t * payload, size_t lenght
|
|||||||
JsonObject root = jsonBuffer.as<JsonObject>();
|
JsonObject root = jsonBuffer.as<JsonObject>();
|
||||||
serializeJson(root, DBG_OUTPUT_PORT);
|
serializeJson(root, DBG_OUTPUT_PORT);
|
||||||
DBG_OUTPUT_PORT.println("");
|
DBG_OUTPUT_PORT.println("");
|
||||||
mode = static_cast<MODE>((int) root["mode"]);
|
mode = static_cast<MODE>(root["mode"].as<uint8_t>());
|
||||||
ws2812fx_mode = root["ws2812fx_mode"];
|
ws2812fx_mode = root["ws2812fx_mode"].as<uint8_t>();
|
||||||
ws2812fx_speed = root["speed"];
|
ws2812fx_speed = root["speed"].as<uint8_t>();
|
||||||
brightness = root["brightness"];
|
brightness = root["brightness"];
|
||||||
main_color.white = (uint8_t) root["color"][0];
|
main_color.white = root["color"][0].as<uint8_t>();
|
||||||
main_color.red = (uint8_t) root["color"][1];
|
main_color.red = root["color"][1].as<uint8_t>();
|
||||||
main_color.green = (uint8_t) root["color"][2];
|
main_color.green = root["color"][2].as<uint8_t>();
|
||||||
main_color.blue = (uint8_t) root["color"][3];
|
main_color.blue = root["color"][3].as<uint8_t>();
|
||||||
back_color.white = (uint8_t) root["color"][4];
|
back_color.white = root["color"][4].as<uint8_t>();
|
||||||
back_color.red = (uint8_t) root["color"][5];
|
back_color.red = root["color"][5].as<uint8_t>();
|
||||||
back_color.green = (uint8_t) root["color"][6];
|
back_color.green = root["color"][6].as<uint8_t>();
|
||||||
back_color.blue = (uint8_t) root["color"][7];
|
back_color.blue = root["color"][7].as<uint8_t>();
|
||||||
xtra_color.white = (uint8_t) root["color"][8];
|
xtra_color.white = root["color"][8].as<uint8_t>();
|
||||||
xtra_color.red = (uint8_t) root["color"][9];
|
xtra_color.red = root["color"][9].as<uint8_t>();
|
||||||
xtra_color.green = (uint8_t) root["color"][10];
|
xtra_color.green = root["color"][10].as<uint8_t>();
|
||||||
xtra_color.blue = (uint8_t) root["color"][11];
|
xtra_color.blue = root["color"][11].as<uint8_t>();
|
||||||
convertColors();
|
convertColors();
|
||||||
jsonBuffer.clear();
|
jsonBuffer.clear();
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
#define SKETCH_VERSION "2.2.3.rgbw.3c"
|
#define SKETCH_VERSION "2.2.4.rgbw.3c"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# McLighting v2 - The ESP8266 based multi-client lighting gadget
|
# McLighting v2 - The ESP8266 based multi-client lighting gadget
|
||||||
|
|
||||||
[](https://gitter.im/mclighting/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) [](https://travis-ci.com/toblum/McLighting) [](https://opensource.org/licenses/MIT) [](https://github.com/toblum/McLighting/blob/master/Arduino/McLighting/version.h)
|
[](https://gitter.im/mclighting/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) [](https://travis-ci.com/toblum/McLighting) [](https://opensource.org/licenses/MIT) [](https://github.com/toblum/McLighting/blob/master/Arduino/McLighting/version.h)
|
||||||
|
|
||||||
McLighting (the multi-client lighting gadget) is a very cheap internet-controllable lighting solution based on the famous ESP8266 microcontroller and WS2811/2812 led strips. It features among other things a web-interface, a REST-API and a websocket connector.
|
McLighting (the multi-client lighting gadget) is a very cheap internet-controllable lighting solution based on the famous ESP8266 microcontroller and WS2811/2812 led strips. It features among other things a web-interface, a REST-API and a websocket connector.
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -66,7 +66,7 @@ platform = ${common.platform}
|
|||||||
board_build.f_cpu = 160000000L
|
board_build.f_cpu = 160000000L
|
||||||
build_flags =
|
build_flags =
|
||||||
${common.build_flags} -D D1=2
|
${common.build_flags} -D D1=2
|
||||||
-Wl,-Teagle.flash.1m64.ld ; Required for core > v2.5.0 or staging version
|
-Wl,-Teagle.flash.1m128.ld ; Required for core > v2.5.0 or staging version
|
||||||
monitor_speed = ${common.monitor_speed}
|
monitor_speed = ${common.monitor_speed}
|
||||||
upload_speed = ${common.upload_speed}
|
upload_speed = ${common.upload_speed}
|
||||||
upload_resetmethod = ${common.upload_resetmethod}
|
upload_resetmethod = ${common.upload_resetmethod}
|
||||||
|
|||||||
Reference in New Issue
Block a user