Stránka 3 z 3

Re: Tasker a web server

Napsal: 08 dub 2020, 15:56
od kiRRow
No můžeš celý ten zápis html do paměti hodit do externího souboru *.h a ten pak v místě kde byl kód nahradit #include.

Pokud v soboru test.h používám funkci fce1() ... tak :

Kód: Vybrat vše

#include "test.h"
void fce1(){
	delay(1000);
}
// tohle fungovat nebude .... bude to hulákat že v tomto scope není deklarovana fce1
void fce1(){
	delay(1000);
}
#include "test.h"
// tohle fungovat bude ....
Pokud soubor test1.h používá funkci ze souboru test2.h

Kód: Vybrat vše

#include "test1.h"
#include "test2.h"
// tohle nebude fungovat ... v scope neni deklarovana funkce

#include "test2.h"
#include "test1.h"
// tohle fungovat bude ....

Re: Tasker a web server

Napsal: 08 dub 2020, 19:13
od commar
A nezkoušel jste tento Tasker?

https://github.com/joysfera/arduino-tasker

Re: Tasker a web server

Napsal: 09 dub 2020, 06:10
od tosik
Jo, ten používám. ;)

Re: Tasker a web server

Napsal: 09 dub 2020, 07:09
od pavel1tu
Ten je naprd, má spoustu chyb - nelze třeba používat se SLEEP atd., není laděn na více platformách,
není delší dobu vyvíjen a autor nereaguje.

https://github.com/arkhipenko/TaskScheduler
Používám léta, je neustále vyvíjen, testován na vícero platformách (včetně ESP),
autor trvale vylepšuje a reaguje na dotazy a připomínky.
Samozřejmostí je nízké zatížení CPU, podpora SLEEP atd ....

Re: Tasker a web server

Napsal: 09 dub 2020, 20:30
od tosik
Super, díky za tip, mrknu na to....

Re: Tasker a web server

Napsal: 10 dub 2020, 08:52
od pavel1tu
Neříkám, že to bude to pravé,
ale před 2 roky jsem tasker používal a vycouval jsem právě kvůli různým problémům.

Táskerů je spousta a já když u knihovny nevím, beru většinou tu co je "živá",
nejsem dobrý programátor abych si ji opravil.