Skip to content
This repository was archived by the owner on Jan 29, 2023. It is now read-only.

Added MQTT and OTA over Ethernet example to examples folder #9

Merged
merged 3 commits into from
Sep 10, 2022
Merged

Added MQTT and OTA over Ethernet example to examples folder #9

merged 3 commits into from
Sep 10, 2022

Conversation

PockyBum522
Copy link

Hello. As per our discussion I've added an example that has working OTA upload over ethernet.

I based the sketch on the /examples/MQTTClient_Auth sketch

I have updated the header comment to include OTA instructions

All libraries used also have URLs so users easily know where to go and what to install to use this example

Sketch uses DHCP and reports the board IP over both MQTT and Serial so users can get an idea of how to include that in their sketches. I have left all static IP example lines, they are just commented out.

Let me know if you have any questions or would like any modifications. Thank you. This is one of my first pull requests. Let me know if I can do anything better.

@khoih-prog khoih-prog merged commit 63ac506 into khoih-prog:main Sep 10, 2022
@khoih-prog
Copy link
Owner

LGTM. Just a very minimal change to match the example's name.

Thanks and looking forward to receiving more PRs from you.

khoih-prog added a commit that referenced this pull request Sep 11, 2022
#### Releases v1.5.1

1. Add example [MQTT_And_OTA_Ethernet](https://github.com/khoih-prog/WebServer_WT32_ETH01/tree/main/examples/MQTT_And_OTA_Ethernet) to demo how to use OTA. Check [Added MQTT and OTA over Ethernet example to examples folder #9](#9)
2. Fix compile error for examples [serveStatic](https://github.com/khoih-prog/WebServer_WT32_ETH01/tree/main/examples/serveStatic) and [serveStaticLoadFile](https://github.com/khoih-prog/WebServer_WT32_ETH01/tree/main/examples/serveStaticLoadFile) to use built-in LittleFS library for new ESP32 cores
3. Fix compile error for examples [ESP32_FS_EthernetWebServer](https://github.com/khoih-prog/WebServer_WT32_ETH01/tree/main/examples/ESP32_FS_EthernetWebServer) if WT32_ETH01 is selected as A0 (and many pins) not defined in new ESP32 cores
khoih-prog added a commit that referenced this pull request Sep 11, 2022
#### Releases v1.5.1

1. Add example [MQTT_And_OTA_Ethernet](https://github.com/khoih-prog/WebServer_WT32_ETH01/tree/main/examples/MQTT_And_OTA_Ethernet) to demo how to use OTA. Check [Added MQTT and OTA over Ethernet example to examples folder #9](#9)
2. Fix compile error for examples [serveStatic](https://github.com/khoih-prog/WebServer_WT32_ETH01/tree/main/examples/serveStatic) and [serveStaticLoadFile](https://github.com/khoih-prog/WebServer_WT32_ETH01/tree/main/examples/serveStaticLoadFile) to use built-in LittleFS library for new ESP32 cores
3. Fix compile error for examples [ESP32_FS_EthernetWebServer](https://github.com/khoih-prog/WebServer_WT32_ETH01/tree/main/examples/ESP32_FS_EthernetWebServer) if WT32_ETH01 is selected as A0 (and many pins) not defined in new ESP32 cores
khoih-prog added a commit that referenced this pull request Sep 11, 2022
#### Releases v1.5.1

1. Add example [MQTT_And_OTA_Ethernet](https://github.com/khoih-prog/WebServer_WT32_ETH01/tree/main/examples/MQTT_And_OTA_Ethernet) to demo how to use OTA. Check [Added MQTT and OTA over Ethernet example to examples folder #9](#9)
2. Fix compile error for examples [serveStatic](https://github.com/khoih-prog/WebServer_WT32_ETH01/tree/main/examples/serveStatic) and [serveStaticLoadFile](https://github.com/khoih-prog/WebServer_WT32_ETH01/tree/main/examples/serveStaticLoadFile) to use built-in LittleFS library for new ESP32 cores
3. Fix compile error for examples [ESP32_FS_EthernetWebServer](https://github.com/khoih-prog/WebServer_WT32_ETH01/tree/main/examples/ESP32_FS_EthernetWebServer) if WT32_ETH01 is selected as A0 (and many pins) not defined in new ESP32 cores
khoih-prog added a commit that referenced this pull request Sep 11, 2022
#### Releases v1.5.1

1. Add example [MQTT_And_OTA_Ethernet](https://github.com/khoih-prog/WebServer_WT32_ETH01/tree/main/examples/MQTT_And_OTA_Ethernet) to demo how to use OTA. Check [Added MQTT and OTA over Ethernet example to examples folder #9](#9)
2. Fix compile error for examples [serveStatic](https://github.com/khoih-prog/WebServer_WT32_ETH01/tree/main/examples/serveStatic) and [serveStaticLoadFile](https://github.com/khoih-prog/WebServer_WT32_ETH01/tree/main/examples/serveStaticLoadFile) to use built-in LittleFS library for new ESP32 cores
3. Fix compile error for examples [ESP32_FS_EthernetWebServer](https://github.com/khoih-prog/WebServer_WT32_ETH01/tree/main/examples/ESP32_FS_EthernetWebServer) if WT32_ETH01 is selected as A0 (and many pins) not defined in new ESP32 cores
@khoih-prog
Copy link
Owner

Hi @PockyBum522

The new WebServer_WT32_ETH01 releases v1.5.1 has just been published. Your contribution is noted in Contributions and Thanks

Best Regards,


Releases v1.5.1

  1. Add example MQTT_And_OTA_Ethernet to demo how to use OTA. Check Added MQTT and OTA over Ethernet example to examples folder #9
  2. Fix compile error for examples serveStatic and serveStaticLoadFile to use built-in LittleFS library for new ESP32 cores
  3. Fix compile error for examples ESP32_FS_EthernetWebServer if WT32_ETH01 is selected as A0 (and many pins) not defined in new ESP32 cores

@khoih-prog
Copy link
Owner

One more WT32_ETH01-related library for you to add OTA => AsyncWebServer_WT32_ETH01

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants