18
18
#include " image_p.h"
19
19
#include " lorem_p.h"
20
20
21
- #include < LittleFS.h>
22
-
23
- // Нативная версия WiFi esp8266/esp32
24
- #include < FastBot2.h>
25
- FastBot2 bot;
26
-
27
- // версия с другим клиентом, например tinygsm
28
- // обязательно нужен модем с поддержкой HTTPS
29
- // #define TINY_GSM_MODEM_SIM7000SSL
30
- // #include <TinyGsmClient.h>
31
- // TinyGsm modem(Serial);
32
- // TinyGsmClient gsmclient(modem);
33
- // #include <FastBot2Client.h>
34
- // FastBot2Client bot(gsmclient);
35
-
36
- char * __stack_start = nullptr ;
21
+ static char * __stack_start = nullptr ;
37
22
void stackStart () {
38
23
char c;
39
24
__stack_start = &c;
@@ -42,7 +27,7 @@ void stackPrint() {
42
27
char c;
43
28
Serial.println (int32_t (__stack_start - &c));
44
29
}
45
- uint32_t _ms;
30
+ static uint32_t _ms;
46
31
void loopStart () {
47
32
_ms = millis ();
48
33
}
@@ -51,6 +36,28 @@ void loopPrint() {
51
36
Serial.println (millis () - _ms);
52
37
}
53
38
39
+ #include < LittleFS.h>
40
+
41
+ // Нативная версия WiFi esp8266/esp32
42
+ #include < FastBot2.h>
43
+ FastBot2 bot;
44
+
45
+ // версия с другим клиентом, например tinygsm
46
+ // обязательно нужен модем с поддержкой HTTPS
47
+ // #define TINY_GSM_MODEM_SIM7000SSL
48
+ // #include <TinyGsmClient.h>
49
+ // TinyGsm modem(Serial);
50
+ // TinyGsmClient gsmclient(modem);
51
+ // #include <FastBot2Client.h>
52
+ // FastBot2Client bot(gsmclient);
53
+
54
+ void rawh (Text text);
55
+ void handleCommand (fb::Update& u);
56
+ void handleMessage (fb::Update& u);
57
+ void handleDocument (fb::Update& u);
58
+ void handleQuery (fb::Update& u);
59
+ void updateh (fb::Update& u);
60
+
54
61
void rawh (Text text) {
55
62
// Serial.println(text);
56
63
}
0 commit comments