mirror of
https://gitlab.com/zwirbel/illucat.git
synced 2025-12-15 17:58:20 +01:00
change default config, print softap ip
This commit is contained in:
23
README.md
23
README.md
@@ -7,10 +7,9 @@ Endpoint: /pixel
|
|||||||
|
|
||||||
Fields:
|
Fields:
|
||||||
|Field|Type|Description|
|
|Field|Type|Description|
|
||||||
| ------------- |-------------| -----|
|
| --- |---| ---|
|
||||||
| topic | String | $1600 |
|
| topic | String | Defines which functionality is executed, usually to set a value or activate a pattern |
|
||||||
| col 2 is | centered | $12 |
|
| payload | String | data to be set |
|
||||||
| zebra stripes | are neat | $1 |
|
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
``` json
|
``` json
|
||||||
@@ -19,16 +18,14 @@ Example:
|
|||||||
"payload": "13505813"
|
"payload": "13505813"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
#### Message Formate
|
|
||||||
- topic
|
|
||||||
- payload
|
|
||||||
|
|
||||||
#### Topics
|
#### Topics
|
||||||
pixels/color
|
| Topic | Data |
|
||||||
pixels/color2
|
| ----- | ---- |
|
||||||
pixels/pattern
|
| pixels/color | |
|
||||||
pixels/totalSteps
|
| pixels/color2 | |
|
||||||
pixels/brightness
|
| pixels/pattern | |
|
||||||
|
| pixels/totalSteps | |
|
||||||
|
| pixels/brightness | |
|
||||||
|
|
||||||
### REST
|
### REST
|
||||||
#### Endpoints
|
#### Endpoints
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"stationSSID": "MyWifi",
|
"stationSSID": "MyWifi",
|
||||||
"stationPassword": "myWifiPassword",
|
"stationPassword": "myWifiPassword",
|
||||||
"meshSSID": "illucat",
|
"meshSSID": "illucat",
|
||||||
"meshPassword": "th3r31sn0sp00n",
|
"meshPassword": "illumination",
|
||||||
"meshPort": 5555,
|
"meshPort": 5555,
|
||||||
"channel": 11
|
"channel": 11
|
||||||
}
|
}
|
||||||
@@ -90,6 +90,7 @@ class IlluCat : public MeshSprocket {
|
|||||||
// TODO plugin?
|
// TODO plugin?
|
||||||
dnsServer->setErrorReplyCode(DNSReplyCode::NoError);
|
dnsServer->setErrorReplyCode(DNSReplyCode::NoError);
|
||||||
dnsServer->start(DNS_PORT, "*", WiFi.softAPIP());
|
dnsServer->start(DNS_PORT, "*", WiFi.softAPIP());
|
||||||
|
Serial.println("SoftAP IP: " + WiFi.softAPIP().toString());
|
||||||
|
|
||||||
defaultAnimation();
|
defaultAnimation();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user