mirror of
https://gitlab.com/zwirbel/illucat.git
synced 2025-12-16 18:05:05 +01:00
add stuff
This commit is contained in:
@@ -87,11 +87,13 @@ class IlluCat : public MeshSprocket {
|
||||
addPlugin(new PixelPlugin(pixelConfig, pixels));
|
||||
|
||||
|
||||
// TODO plugin?
|
||||
dnsServer->setErrorReplyCode(DNSReplyCode::NoError);
|
||||
dnsServer->start(DNS_PORT, "*", WiFi.softAPIP());
|
||||
Serial.println(WiFi.softAPIP());
|
||||
|
||||
defaultAnimation();
|
||||
|
||||
// TODO plugin
|
||||
// setup web stuff
|
||||
server->serveStatic("/pixelConfig.json", SPIFFS, "pixelConfig.json");
|
||||
server->on("/pixel/pattern", HTTP_POST, bind(&IlluCat::patternWebRequestHandler, this, _1));
|
||||
@@ -123,6 +125,7 @@ class IlluCat : public MeshSprocket {
|
||||
}
|
||||
|
||||
void dispatch( uint32_t from, String &msg ) {
|
||||
Serial.println(msg);
|
||||
currentMessage.fromJsonString(msg);
|
||||
if(currentMessage.valid){
|
||||
currentMessage.from = from;
|
||||
|
||||
Reference in New Issue
Block a user