-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i have problem with WiFiClientSecure :( #52
Comments
hi |
hi
but i dont need DHT , i want to give data from google sheet and share this
data from telegram Bot.
i dont neet to read dht sensor data , in below project:
https://github.com/lorol/Googlesheet_DHT_simple
i only use part of give data from google sheet, and dont use from write dht
sensor in google sheet
please help , i force to complate this project
…On Thu, Oct 12, 2017 at 12:47 PM, denzen84 ***@***.***> wrote:
Try to use standart DHT library from Adafruit.
#include <DHT.h>
....
// Global definitions
const int dhtPin = D7;
DHT dht(dhtPin, DHT22);
...
void setup() {
Serial.begin(115200);
dht.begin(); // initializing DHT
float h = dht.readHumidity();
float t = dht.readTemperature();
if (isnan(h) || isnan(t)) {
Serial.println("Error reading DHT22");
} else
{
Serial.print("Hum: "+String(h)+"% Temp: "+String(t)+" *C");
}
}
void loop() {
......
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AM000kNZf3n_uqwtaGkibFuIOJeZGVCXks5srdkxgaJpZM4P09Bg>
.
|
Try removing WiFiclientsecure from your sketch and passing httpsredirect
client instead into telegram bot
…On 12 Oct 2017 17:32, "mechanic98" ***@***.***> wrote:
hi
but i dont need DHT , i want to give data from google sheet and share this
data from telegram Bot.
i dont neet to read dht sensor data , in below project:
https://github.com/lorol/Googlesheet_DHT_simple
i only use part of give data from google sheet, and dont use from write dht
sensor in google sheet
please help , i force to complate this project
On Thu, Oct 12, 2017 at 12:47 PM, denzen84 ***@***.***>
wrote:
> Try to use standart DHT library from Adafruit.
>
> #include <DHT.h>
> ....
> // Global definitions
> const int dhtPin = D7;
> DHT dht(dhtPin, DHT22);
> ...
> void setup() {
> Serial.begin(115200);
>
> dht.begin(); // initializing DHT
> float h = dht.readHumidity();
> float t = dht.readTemperature();
> if (isnan(h) || isnan(t)) {
> Serial.println("Error reading DHT22");
> } else
> {
> Serial.print("Hum: "+String(h)+"% Temp: "+String(t)+" *C");
> }
> }
>
>
>
>
> void loop() {
> ......
> }
>
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot/issues/
52#issuecomment-336070909>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AM000kNZf3n_
uqwtaGkibFuIOJeZGVCXks5srdkxgaJpZM4P09Bg>
> .
>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABfXwpbig228DWRqJ6BTECJMV2xokMoiks5srj8pgaJpZM4P09Bg>
.
|
but telegram bot dont work without WiFiclientsecure
i also post my question in forum.arduino.cc but dont give good response 😞
do you have idea for fix this problem?
my idea of project is one esp8266 give weather forecast from Wunderground
website and save into google sheet
and another esp give this forecsat from google sheet and share to telegram
Bot,
i attach picture of google sheet.
and this is my topic in forum :
https://forum.arduino.cc/index.php?topic=504927.0
On Thu, Oct 12, 2017 at 8:09 PM, Brian Lough <notifications@github.com>
wrote:
… Try removing WiFiclientsecure from your sketch and passing httpsredirect
client instead into telegram bot
On 12 Oct 2017 17:32, "mechanic98" ***@***.***> wrote:
> hi
> but i dont need DHT , i want to give data from google sheet and share
this
> data from telegram Bot.
> i dont neet to read dht sensor data , in below project:
> https://github.com/lorol/Googlesheet_DHT_simple
> i only use part of give data from google sheet, and dont use from write
dht
> sensor in google sheet
> please help , i force to complate this project
>
> On Thu, Oct 12, 2017 at 12:47 PM, denzen84 ***@***.***>
> wrote:
>
> > Try to use standart DHT library from Adafruit.
> >
> > #include <DHT.h>
> > ....
> > // Global definitions
> > const int dhtPin = D7;
> > DHT dht(dhtPin, DHT22);
> > ...
> > void setup() {
> > Serial.begin(115200);
> >
> > dht.begin(); // initializing DHT
> > float h = dht.readHumidity();
> > float t = dht.readTemperature();
> > if (isnan(h) || isnan(t)) {
> > Serial.println("Error reading DHT22");
> > } else
> > {
> > Serial.print("Hum: "+String(h)+"% Temp: "+String(t)+" *C");
> > }
> > }
> >
> >
> >
> >
> > void loop() {
> > ......
> > }
> >
> >
> > —
> > You are receiving this because you authored the thread.
> > Reply to this email directly, view it on GitHub
> > <https://github.com/witnessmenow/Universal-
Arduino-Telegram-Bot/issues/
> 52#issuecomment-336070909>,
> > or mute the thread
> > <https://github.com/notifications/unsubscribe-auth/AM000kNZf3n_
> uqwtaGkibFuIOJeZGVCXks5srdkxgaJpZM4P09Bg>
> > .
> >
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot/issues/
52#issuecomment-336192526>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/
ABfXwpbig228DWRqJ6BTECJMV2xokMoiks5srj8pgaJpZM4P09Bg>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AM000pXC70Uuy-0whjkpbZO-PozI7cyPks5srkDYgaJpZM4P09Bg>
.
|
my project have to part: part 1 is complate, i have problem in part two, |
Sorry I can't read all your messages now, but have you tried passing
httpsredirect? It extends WiFi client secure so I don't see why it wouldn't
work
…On 12 Oct 2017 18:01, "mechanic98" ***@***.***> wrote:
my project have to part:
1- one esp give data from weather forecast from Wunderground website and
sent this data to google sheet
2- another esp give above data from google sheet and send to telegram Bot
part 1 is complate, i have problem in part two,
in part to i also can give data from google sheet , and good work when i
do not use telegram bot,
but when i use telegram bot in sketch , Hong's program
thank you for reply
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABfXwmnpn-h1D_qif8deDH4prIsiUIMYks5srkXcgaJpZM4P09Bg>
.
|
this is answer of my friend:
It looks like you have two WiFiClientSecure instances at the same time: one
for telegram bot, another one for google sheets. That is not going to work,
as single WiFiClientSecure instance needs around 25kB of heap (that is in
current git version, and even more in release 2.3.0), and the total amount
of heap at the start of the program is ~40kB. You need to refactor your
program so it only uses one WiFiClientSecure at a time.
but how i do this?
in below is my compile information:
Sketch uses 303141 bytes (29%) of program storage space. Maximum is 1044464
bytes.
Global variables use 41360 bytes (50%) of dynamic memory, leaving 40560
bytes for local variables. Maximum is 81920 bytes
On Thu, Oct 12, 2017 at 8:44 PM, Brian Lough <notifications@github.com>
wrote:
… Sorry I can't read all your messages now, but have you tried passing
httpsredirect? It extends WiFi client secure so I don't see why it wouldn't
work
On 12 Oct 2017 18:01, "mechanic98" ***@***.***> wrote:
> my project have to part:
> 1- one esp give data from weather forecast from Wunderground website and
> sent this data to google sheet
> 2- another esp give above data from google sheet and send to telegram Bot
>
> part 1 is complate, i have problem in part two,
> in part to i also can give data from google sheet , and good work when i
> do not use telegram bot,
> but when i use telegram bot in sketch , Hong's program
> thank you for reply
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot/issues/
52#issuecomment-336200480>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ABfXwmnpn-h1D_
qif8deDH4prIsiUIMYks5srkXcgaJpZM4P09Bg>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AM000utnTJUESgye69ecDo8YE46Pu5O0ks5srkkJgaJpZM4P09Bg>
.
|
I have suggested something for you to try, I also see someone on the Arduino forum has suggested the same thing as well. Have you tried passing your httpsRedirect client into the Telegram Bot yet? |
excuse me 😖
i try ,but cant passing httpsRedirect client into the Telegram Bot .
I'm confused
…On Fri, Oct 13, 2017 at 1:49 AM, Brian Lough ***@***.***> wrote:
I have suggested something for you to try, I also see someone on the
Arduino forum has suggested the same thing as well. Have you tried passing
your httpsRedirect client into the Telegram Bot yet?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AM000k0ggBwHGkY1BvgFPqzoJe1JOEJ8ks5srpCNgaJpZM4P09Bg>
.
|
What do you mean you can't? what happens? |
becuse i am newcomer in programing and i do not know exacly what to do 😞
…On Fri, Oct 13, 2017 at 3:01 AM, Brian Lough ***@***.***> wrote:
What do you mean you can't? what happens?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AM000uuZfH49HQK_MBURvnaM6rSBjGuBks5srqE6gaJpZM4P09Bg>
.
|
No updates so closing |
hi
i am thanks for your help to peaple for publishin your good project
in this code i want give data from google Sheet and send data in telegram bot,
i use this project to give data from google sheet:
https://github.com/lorol/Googlesheet_DHT_simple
and use this project for recive and send data from telegram robat:
https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot
i use esp8266
i merge two above project but i cant compile because i give error , because two project use WiFiClientSecure.h library , and same client :(
i changed the client name , and code ha been compiled, but in serial monitor , program crashed
i changed "HTTPSRedirect* client= nullptr;" to "HTTPSRedirect* test= nullptr;" and change every client in the code to test,
i also change below code, in the next change
to :
and you can see my Serial monitor in both time:
i add Serial.println() in the code for debugging
this is my code:
when the code arive to "6b" program go to hang,
when arive to :
if (!test->connected()) test->connect(host, httpsPort);
this is my output:
please help me please :(
The text was updated successfully, but these errors were encountered: