-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Heisenberg2980/Add-Wifi-and-OTA
Add wifi and ota
- Loading branch information
Showing
7 changed files
with
329 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
.vscode/c_cpp_properties.json | ||
.vscode/launch.json | ||
.vscode/ipch | ||
Settings.h | ||
Settings.h | ||
platformio.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"files.associations": { | ||
"*.tcc": "cpp" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Name, Type, SubType, Offset, Size, Flags | ||
nvs, data, nvs, 0x9000, 0x5000, | ||
otadata, data, ota, 0xe000, 0x2000, | ||
app0, app, ota_0, 0x10000, 0x1E0000, | ||
app1, app, ota_1, 0x1F0000,0x1E0000, | ||
eeprom, data, 0x99, 0x3F0000,0x1000, | ||
spiffs, data, spiffs, 0x3F1000,0xF000, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Name, Type, SubType, Offset, Size, Flags | ||
nvs, data, nvs, 0x9000, 0x5000, | ||
otadata, data, ota, 0xe000, 0x2000, | ||
app0, app, ota_0, 0x10000, 0x1E0000, | ||
app1, app, ota_1, 0x1F0000, 0x1E0000, | ||
spiffs, data, spiffs, 0x3D0000, 0x30000, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
//Replace with the name of the mouse | ||
#define deviceName "my BT mouse" | ||
#define deviceNameNoSpaces "my_BT_mouse" | ||
|
||
//Replace with the room name where the node will be placed; example: #define room "living-room" | ||
#define room "living-room" | ||
|
||
|
||
|
||
//Replace with your Wifi SSID; example: #define ssid "MyWifi" | ||
#define ssid "MyWifi" | ||
|
||
|
||
//Replace with your Wifi password; example: #define password "12345678" | ||
#define password "12345678" | ||
|
||
//Replace with a human-friendly host name. Must not contain spaces or special characters and be unique on your network | ||
#define hostname "esp32_unicorn_mouse_" room | ||
|
||
//Replace with your MQTT Broker address; example: #define mqttHost IPAddress(192, 168, 1, 195) | ||
#define mqttHost IPAddress(192, 168, 1, 195) | ||
|
||
//Replace with your MQTT Broker port; example: #define mqttPort 1883 | ||
#define mqttPort 1883 | ||
|
||
//Replace with your MQTT Broker user; example: #define mqttUser "homeassistant" | ||
#define mqttUser "mqtt_user" | ||
|
||
//Replace with your MQTT Broker password; example: #define mqttPassword "12345678" | ||
#define mqttPassword "mqtt_password" | ||
|
||
// Logic level for turning the led on. Most boards use active low, meaning LED_ON should be set to 0 | ||
#define LED_ON 0 | ||
|
||
//Define the topic for publishing availability | ||
#define availabilityTopic "mouse_nodes/" room | ||
|
||
//Define the topic for publishing JSON attributes | ||
#define telemetryTopic "mouse_nodes/tele/" room | ||
|
||
//Define the base topic for room detection. Usually "room_presence" | ||
#define channel availabilityTopic deviceNameNoSpaces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters