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: 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

View File

@@ -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
} }

View File

@@ -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();