change default config, print softap ip

This commit is contained in:
2018-09-19 21:59:02 +02:00
parent 49d255c728
commit 304e19f092
3 changed files with 12 additions and 14 deletions

View File

@@ -7,10 +7,9 @@ Endpoint: /pixel
Fields:
|Field|Type|Description|
| ------------- |-------------| -----|
| topic | String | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
| --- |---| ---|
| topic | String | Defines which functionality is executed, usually to set a value or activate a pattern |
| payload | String | data to be set |
Example:
``` json
@@ -19,16 +18,14 @@ Example:
"payload": "13505813"
}
```
#### Message Formate
- topic
- payload
#### Topics
pixels/color
pixels/color2
pixels/pattern
pixels/totalSteps
pixels/brightness
| Topic | Data |
| ----- | ---- |
| pixels/color | |
| pixels/color2 | |
| pixels/pattern | |
| pixels/totalSteps | |
| pixels/brightness | |
### REST
#### Endpoints

View File

@@ -4,7 +4,7 @@
"stationSSID": "MyWifi",
"stationPassword": "myWifiPassword",
"meshSSID": "illucat",
"meshPassword": "th3r31sn0sp00n",
"meshPassword": "illumination",
"meshPort": 5555,
"channel": 11
}

View File

@@ -90,6 +90,7 @@ class IlluCat : public MeshSprocket {
// TODO plugin?
dnsServer->setErrorReplyCode(DNSReplyCode::NoError);
dnsServer->start(DNS_PORT, "*", WiFi.softAPIP());
Serial.println("SoftAP IP: " + WiFi.softAPIP().toString());
defaultAnimation();