Sming - Open Source framework for high efficiency native ESP8266 development

User avatar
By alonewolfx2
#17542 basicaly sming is high level programing for esp8266. its based on arduino soo you can use less code for same operation as j0hncc said. plus, sming have more examples, for ex:
-httpserver_ajax,
-screen drivers
-tcp and udp servers
-ftp server with internal file system
if you want to use that things with esp sdk you must to hard work but if you use sming you can use that things without pain :):) plus we have very active giter chat for issues,examples,smile :)
User avatar
By kenn
#17696 Hi Anakod. Since the latest update, I'm now having problems with the TCP server. For testing, I'm using your HttpServer_Bootstrap example.

The application builds OK, I am able to initialize then flash to an ESP-01, when I restart the ESP-01, the application loads, it connects to my wifi, the remote pages are downloaded correctly, and the webserver starts.

Connecting to the ESP from a web browser: http://[my ip]/hello works ok, but when I try http://[my ip]/ to parse index.html, it seems to fail after a certain point:

Code: Select allresponse sendBody
READ Template (0)
plain template text pos: 2848, len: 1024
TCP connection failed with err -1 ("")
onReadyToSendData: 3
response sendBody
READ Template (0)
plain template text pos: 2848, len: 1024
TCP connection failed with err -1 ("")
onReadyToSendData: 3
response sendBody
READ Template (0)
plain template text pos: 2848, len: 1024
TCP connection failed with err -1 ("")
TCP connection closed by timeout: 90 (from 90)
TCP connection closing
~TCP connection
-TCP connection


... it repeats the fail loop til the 90 sec timeout is hit.

I also tried just pulling and sending the index.html file without parsing it as a template
Code: Select allresponse.sendFile("index.html");


But the same failure happened.

This is happening since my latest update - version 2.04 of CHERTS build system for Windows, and your latest version of Sming. Before, when I used previous version of Sming, and Espressif SDK v1.0.1b1, I didn't have this problem.

Is it ok to be using the latest Espressif SDK with CHERTS system, or do we still need to use Espressif SDK v1.0.1b1?

Thanks!
User avatar
By esp03madness
#17728 Thank you j0hncc and alonewolfx2 for your replies!

alonewolfx2 wrote:..its based on arduino..

I see, now it makes sense how one is able to use Adruino plugins. Would it be fair to say that it is Adruino on esp8266, or not quite?

alonewolfx2 - could I possibly talk you into describing the architecture just a little bit? :)
Like for example - is there a Sming "main loop" and what operations does it perform on every iteration?
(just a high lever overview that would make it a little easier to parse the sources)