From e75ac899d34369c404d3c5185aa97fbd2ef147a9 Mon Sep 17 00:00:00 2001 From: Aircoookie Date: Wed, 8 Jan 2020 21:51:35 +0100 Subject: [PATCH] Updated Add own functionality (markdown) --- Add-own-functionality.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Add-own-functionality.md b/Add-own-functionality.md index d6885c4..f173478 100644 --- a/Add-own-functionality.md +++ b/Add-own-functionality.md @@ -5,9 +5,10 @@ Programming is done in the Arduino IDE. There is a special file, `wled06_usermod (however, if you think your code may be relevant to many users, feel free to code it in directly and open a pull request) This file has three empty methods: -- `userBeginPreConnection()` is called after loading settings but before connecting to WiFi. -Use it to load custom settings or to specify own server pages with the `server.on()` method. -- `userBegin()` is the main initialization. Use it to start own interfaces (IR, UDP ports, Websockets, GPIOs,...). +- `userSetup()` is called after loading settings but before connecting to WiFi. +Use it to start own interfaces if it does not depend on WiFi (IR, Sensors, GPIOs,...). +Also you can use it to load custom settings or to specify own server pages with the `server.on()` method. +- `userConnected()` is called once WiFi is connected. Use it to connect to external servers or init interfaces using wiFi. - `userLoop()` is called by the main `loop()` function. ### Modify WLED values