Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Daniel Pechmann
@dpechman
Hi guys
My application is writing 350 files with 33 bytes each like a circular buffer. (log1.txt to log350.txt)
When it reach 351 it is overwriting the old files from start.
After some days working fine the files from the web interface have disappeared and it seems to be the filesystem is erasing it using api_spiffs_erase
Why the api_spiffs_erase is being called?
eventually is appearing just after fileSetContent
corrupted FS may be the reason of files disappearing?
Mike
@mikee47
This is a known issue. Have a read of #1660, #1663 and #1667.
Daniel Pechmann
@dpechman
Tks Mike!
teicors
@teicors
Hy all, during a search on the web, I found the library to play with mysql directly from Arduino: does anybody try to migrate it in order to insert directly the data instead of using an external (on a server) script (as bash or python) https://github.com/ChuckBell/MySQL_Connector_Arduino: I'm not so proud in C++ programming.. :(
slaff
@slaff
That library will not work out of the box with Sming because we have asynchronous TCP stack. For example that code below will most certainly trigger watchdog reset:
do
  {
    now = millis();
    num = client->available();
    if (num < bytes_need)
      delay(MYSQL_WAIT_INTERVAL);
    else
      break;
  } while (now < wait_till);
The code can be used as a base for an async mysql client but the mysql packet parser should be refactored to work as an interruptible stream parser and the network code should be reworked to work with async data. It is doable but will require some time to implement.
Mike
@mikee47
Feature request?
slaff
@slaff
@/all Sming v4.0.0-rc2 is released https://github.com/SmingHub/Sming/releases/tag/4.0.0-rc2. Help us by testing the latest version on your devices and report any issues.
slaff
@slaff
@dpechman Did this fix #1667 work for you?
Daniel Pechmann
@dpechman
I could not reproduce anymore the issue and not made any change in the code yet.
slaff
@slaff
Ok, thanks.
teicors
@teicors
@slaff Thanks ! And just another easy question: using the delayMicroseconds, the esp is totally freezed or if I use two or more timers, only the part of code involved in the delay is stopped and the other timers are working ? Thanks !!
teicors
@teicors
Hi guys, I'm looking for the direction to use sdk 2.x or 3.0, but I can found it: where is located?
teicors
@teicors
Please, help me to understand why in the same environment the HttpClient uses the latest SDK and my project the old version. I'm changing only the dir where the projects lie.
You can run make list-config to see the current settings. To switch to the new default of SDK 3.0.1, either do make config-clean or make SDK_BASE=$(SMING_HOME)
teicors
@teicors
Now it works. Before I did only the export of SDK_BASE, but finding a value into the config.mk the make don't uses it. Forcing with make SDK_BASE=$(SMING_HOME) I receive an error, but the make sets the variable inside the config.mk and the next make uses the new value. Thanks !!
Mike
@mikee47
Hint: When changing 'major' variables like this it's a good habit to use list-config. That way you can confirm the settings and make sure they're cached before doing a build.
teicors
@teicors
Lesson learned !
Alexander V. Ribchansky
@avr39-ripe
Hello, guys! Recently I started to use lambdas wherever I need some delegate, capturing feature of lambdas is awesome for this! But what is trade off?? Is it better to use std::bind instead? Thanks!!
And one BIG THANK to devs for pushing Sming to such a great lib!
slaff
@slaff

And one BIG THANK to devs for pushing Sming to such a great lib!

@avr39-ripe Thanks and you can help us with testing the latest release 4.0.0-rc3 :)

slaff
@slaff
@avr39-ripe Concerning lambdas and delegates - this commit message can be a good read: SmingHub/Sming@7a7e529
Alexander V. Ribchansky
@avr39-ripe
@slaff @mikee47 thanks for reply and again, thanks for terribly great job! I port my project to recent Sming 4 rc1 afaic,.Will try to update Sming to rc2 and report back if some problem arise, but for now no visible problems with Sming itself. Even websockets looks good.
To lambdas, if I understand commit message in right way, lambdas uses less cpu than bind so I will stay on lambdas :)
Mike
@mikee47
For info, if anyone starts having problems running GDB in the Host emulator under linux, see here https://stackoverflow.com/questions/58225562/how-to-fix-hang-in-gdb-in-ld-linux-so-2-when-running-a-32-bit-executable-on-a-64
slaff
@slaff
@/all Sming v 4.0.0-rc4 is here: https://github.com/SmingHub/Sming/releases/tag/4.0.0-rc4. If there are no showstoppers we might release the final 4.0.0 at the end of the week !
Alexander V. Ribchansky
@avr39-ripe
Hello, guys! Can I update device with older Sming app+rboot via OTA to recent Sming 4 app with new nonos sdk 3? or I need flash it wiredly with flashinit etc? Thanks!
slaff
@slaff
@avr39-ripe You should be able to do the OTA without having to physically wipe out and reinitialize the flash.
slaff
@slaff
@/all Sming v 4.0.0 is here: https://github.com/SmingHub/Sming/releases/tag/4.0.0 Thanks to all of you that made this happen!
Alexander V. Ribchansky
@avr39-ripe
@slaff @mikee47 Thank you a lot! You both did a great job to push Sming to whole new level! Thumbs up!
Now esp32 port? :)
slaff
@slaff

Now esp32 port? :)

It's about time :)

slaff
@slaff
@/all Sming v.4.0.0 was first announced live in front of an audience at OpenFest https://sminghub.github.io/Sming/Release4.0/ and it was great fun. Sming is great as a framework BUT we are pretty bad at marketing therefore we would be very thankful if you can publish a news about Sming v.4.0 in your local open source website in your language. We have quite some Russian, English, German, Ukrainian, Bulgarian, Chinese, Thai and so on speaking contributors so it would be awesome to see news about Sming in your language! Thanks in advance for your help!
Dustin Frisch
@fooker

Hey everybody! I got some strange build errors:

/home/builder/Sming/Sming/Components/rboot/rboot/appcode/rboot-api.c: In function 'rboot_set_config':
/home/builder/Sming/Sming/Components/rboot/rboot/appcode/rboot-api.c:46:2: error: implicit declaration of function 'pvPortMalloc' [-Werror=implicit-function-declaration]
  buffer = (uint8_t*)os_malloc(SECTOR_SIZE);
  ^
/home/builder/Sming/Sming/Components/rboot/rboot/appcode/rboot-api.c:61:2: error: implicit declaration of function 'vPortFree' [-Werror=implicit-function-declaration]
  os_free(buffer);
  ^
cc1: all warnings being treated as errors

I'm using Sming v4.0.0 and I really can't reproduce how this started... I'm kinda stuck with this and help is very much appreciated

Mike
@mikee47
@fooker If make dist-clean doesn't fix this then check to make sure there aren't any 'old' directories kicking about; the easiest way is to start with a fresh clone. See 'known issues' at the bottom of https://sming.readthedocs.io/en/latest/_inc/Sming/building.html. If you're still having issues please open an issue and post the output of make list-config.
Dustin Frisch
@fooker
@mikee47 I've removed the build folders without any change. But I've just narrowed it down to ENABLE_CUSTOM_LWIP=2.
I haven't testet it with with some example code yet. But I will open an issue for this...
Mike
@mikee47
We've just added ESP Quick Toolchain support for Sming, a superb piece of work by the ESP8266 Arduino developers. This brings the toolchain bang up to date (GCC 9.2, no less!), with C++17 and experimental support for C++20 and beyond. It's still in pre-release stages so has had limited testing so please give it a try. Any issues we find can be fed back and benefit everyone using Sming and Arduino. Find out more at https://sming.readthedocs.io/en/latest/arch/esp8266/getting-started/eqt.html.
slaff
@slaff

Thanks to the fantastic work from @mikee47 Sming now supports different SSL adapters. At the moment we have adapters for axTLS and BearSSL. Switching between the different adapters is very easy. For example the Basic_Ssl example can be compiled to use Bearssl using the following command:

make ENABLE_SSL=Bearssl

See Basic_Ssl and HttpServer_ConfigNetwork samples.

NOTICE: This PR introduces breaking changes. Make sure to read the migration guide:
https://sming.readthedocs.io/en/latest/upgrading/4.0-4.1.html

slaff
@slaff

@/all Great new experimental feature for adventurous Sming fans:
Thanks to @mikee47 applications which don't require WiFi can benefit from increased available flash and RAM. The latest develop version allows all non-networking samples to be built with DISABLE_WIFI=1. See #2001 for discussion.

There are various items (listed in #2004) which need addressing, but it's pretty functional as-is

As an example, ScreenTFT_ILI9163C:

Memory WiFi No-WiFi Saving
Used flash 209615 60151 149464
Free RAM 54191 79564 25373
Free IRAM 6466 28021 21555
Vladimir Kravchenko
@kravchenko.v_gitlab
How can I use Sming Host Emulator in Windows? With WebServer example
slaff
@slaff
cd %SMING_HOME%..\samples\HttpServer_AJAX
make SMING_ARCH=Host
So make sure to install all needed prerequisites.
Vladimir Kravchenko
@kravchenko.v_gitlab
And, what about Sming + Clion (Windows)?