Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Stavros Korokithakis
@skorokithakis
so it looks like something else was indeed calling it, and it must have been something in mqttPublish, because it was sending the things in the preamble
mqttPublish concatenates some String objects, i think that was what was calling it
also, another interesting observation: analogWrite(2, 1000); digitalWrite(2, 0); doesn't reset the pin to 0
Michael Miller
@Makuna
which is scary, as do they protect themselves from someone doing it to them.
Stavros Korokithakis
@skorokithakis
it only resets it for an instant
@Makuna yeah, i don't think they do :/
Michael Miller
@Makuna
there is a whole series of these state storing C standard functions that SHOULD BE AVOIDED, as there is always the better alternative that doesn't.
Stavros Korokithakis
@skorokithakis
it's unfortunate that they don't do the right thing by default :/
Me No Dev
@me-no-dev
also, another interesting observation: analogWrite(2, 1000); digitalWrite(2, 0); doesn't reset the pin to 0
analogWrite(2, 0) will do it
pwm is software so digitalWrite will not do much
andig
@andig
hi guys, has anybody made the experience that the addition of the httpclient comes at a cost of ~6k ram?
is that the topic that igrr recently mentioned might be addressed by leaving https handling out with some linker changes?
andig
@andig
Found here: esp8266/Arduino#1857 original issue by @sticilface
liba2k
@liba2k
What do you guys think about porting the to run with the ESP8266_RTOS_SDK , so users can use multitasking for HTTPServer, OTA, etc?
*porting the core
Me No Dev
@me-no-dev
when is the last RTOS released?
we have not ported it because the last RTOS is old
other than that it's trivial (done for the ESP32)
liba2k
@liba2k
I don't know about released, but it looks like it was updated last month: https://github.com/espressif/ESP8266_RTOS_SDK
Me No Dev
@me-no-dev
great... thanks for pointing it out :)
liba2k
@liba2k
@me-no-dev I guess it will take more more memory and some cpu cycles. Do you think it should be a separate repository, so you can still use the non OS version is you are critical?
Me No Dev
@me-no-dev
it can be both, but there should always be a non-os version
maybe good opportunity to make a new repo for both 8266 and 32 running RTOS
liba2k
@liba2k
@me-no-dev Yup, sounds good.
Victor Tseng
@Palatis
so finally we step into a semi-synchronized world...
hmm... hard to describe with the correct word.
Me No Dev
@me-no-dev
actualy is should look exactly the same for the end user,, if they do not want to bother with threads
you still have yout setup and loop
darshanraikanungo
@darshanraikanungo
Hey! I am new to esp8266 and want to send sensor output to a web server.... Need help
Martin Ayotte
@martinayotte
Anyone knows a link to Arduino IDE development where it is describes all the keywords for the platform.txt parsing and resolution ?
(I'm trying to figure out some discrepancies between seen 1.6.5 and 1.6.8, not ESP specific, but in general for third party MCU)
Martin Ayotte
@martinayotte
BTW, if anyone knows, why with 1.6.8 the "-o {object_file}" been extanded to "-o /dev/null" ? :-(
Raph Hennessy
@raphydaphy
Hi! Can i send MQTT data direct from a esp8266 connected to a sensor to a raspberry pi? Or do i need another esp8266 connected to the pi to recieve the data?
Keith Andrew Hill
@vic10us
@raphydaphy you need a running MQTT server available on the same network. It could even be running in the raspberry Pi. But you do not need another esp8266.
Raph Hennessy
@raphydaphy
yeah i have the mqtt server running on the pi so that should be good. Thanks! Some tutorial i found said i needed 2 ESP boards
Victor Tseng
@Palatis
@raphydaphy well you publish to some topic and no one subscribes it it's a lonely operation.
Raph Hennessy
@raphydaphy
Hopperpop
@Hopperpop
@raphydaphy He is using the same esp board, so it should work.
Raph Hennessy
@raphydaphy
alright thx :)
i wasnt sure if it was the same cuz there are lots of esp boards
Hopperpop
@Hopperpop
It's the most basic esp board. Everything you do with this one, can be done with other ones.
Hopperpop
@Hopperpop

I have another problem. Sometimes my Esp throws this error out:

Panic C:\Users\Bob\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\cores\esp8266\core_esp8266_main.cpp:117 loop_task

ctx: sys 
sp: 3ffffdd0 end: 3fffffb0 offset: 01b0

>>>stack>>>
3fffff80:  40247d66 3fffdab0 00000000 3fff1a40  
3fffff90:  00000000 3fffdad0 3fff1a2c 40220361  
3fffffa0:  40000f49 40000f49 3fffdab0 40000f49  
<<<stack<<<

Decoding 5 results
0x40247d66: ets_timer_handler_isr at ??:?
0x40220361: loop_task at C:\Users\Bob\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.0\cores\esp8266/core_esp8266_main.cpp:43
0x40000f49: ?? ??:0
0x40000f49: ?? ??:0
0x40000f49: ?? ??:0

When I look into the code, it seems to me that the stackguard gets corrupted. First I was thinking about a buffer overflow, but I haven't found one jet. Now I have the idea that maybe my stack is getting to big. I'm not an expert in stuff, so it would be great if someone can push me in the correct direction.

Victor Tseng
@Palatis
u got mem leak?
like new-ed but not deleted?
Hopperpop
@Hopperpop
I don't think so, there isn't anything allocated and my heap looks stable. The code runs fine. It's called multiple times without any problems. If it really was a memory leak, it should crash more often.
When it gets new data, it does some calculations and then it crash. I haven't find a way to recreate the crash. I can only wait until it happens and that's two times a day.
Hopperpop
@Hopperpop
I managed to recreate it. I added this code to one of the first functions that's been called. It execute the code and calls some other functions, and than it gives me the same error as before.
My theorie that the stack is getting to big could be correct.
char dummy[820];
dummy[819] = '\0';
Serial.println(dummy + 810);
Martin Ayotte
@martinayotte
What is that code ? "dummy + 810" is simply adding 810 to pointer, so it will println only the last 10 chars of that buffer, but the contain is unkown since it never been really initialized ...
Michael Miller
@Makuna
@ystrem did you see that it was a preorder item?