Skip to content

Commit 6083bd8

Browse files
committed
Update test.ino
1 parent f48092e commit 6083bd8

File tree

1 file changed

+24
-17
lines changed

1 file changed

+24
-17
lines changed

examples/test/test.ino

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,7 @@
1818
#include "image_p.h"
1919
#include "lorem_p.h"
2020

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;
3722
void stackStart() {
3823
char c;
3924
__stack_start = &c;
@@ -42,7 +27,7 @@ void stackPrint() {
4227
char c;
4328
Serial.println(int32_t(__stack_start - &c));
4429
}
45-
uint32_t _ms;
30+
static uint32_t _ms;
4631
void loopStart() {
4732
_ms = millis();
4833
}
@@ -51,6 +36,28 @@ void loopPrint() {
5136
Serial.println(millis() - _ms);
5237
}
5338

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+
5461
void rawh(Text text) {
5562
// Serial.println(text);
5663
}

0 commit comments

Comments
 (0)