Left here for archival purposes.

User avatar
By picstart
#6650 Zeroday
Thanks for making an unpleasant SDK less unpleasant so quickly.
Can we expect some sample lua code that will demonstrate transferring more than 1460 bytes with the speed almost all other alternatives to the esp8266 have.
Lets hope the call back to "sent" forced by the SDK and the embedding of additional sends within the "sent" will not create such overhead as to make serving a large form from the esp8266 unacceptable speed wise. I'm concerned convoluting the "sent" call back with additional sends will create other issues.
User avatar
By ThomasW
#6661
zeroday wrote:I have just pushed a build 20150108.
to solve this problem partially.

so, here is the thing.
multi line sends will be return immediately, and the payload is put into TCP buffer. like the SDK 0.9.2 does.
this is good for sending many little data. say 10+ lines send() send a total <1460 bytes.

"sent" callback will be called once when:
the last chunk into the TCP buffer is send, and the next packet is not put into buffer already.

multi-lines of sends, send more data than the TCP buffer(maybe 2920 bytes), will cause a data lose.
in this situation. call send() AFTER the previous send() triggered a "sent" callback.


That's very reasonable. Many thanks! Don't let the rants get you down, you're doing an excellent job!

Thomas
User avatar
By gwizz
#6666 Yes, please don't forget there are lots of other people who are appreciating development at this fast pace is never going to be a 100% smooth experience. :)

If you want a mature and stable environment then please consider the many excellent other chips in the world.

The fact that software like NodeMCU has been shared with us freely is a great thing - but remember we are not at version 1.0 yet! :D

So you need to buckle in and prepare for a ride - and maybe need to hold back on updating for a few weeks if show-stoppers emerge.

I for one am happy that the development is proceeding so well and responsive to issues as they occur.

G
User avatar
By yes8s
#6671 +1 :) I appreciate the development and the speed with which updates are issued.

True, if you want a mature stable and well supported wifi solution, be prepared to pay for it. IoT for pocket change...I'm happy to deal with the shortcommings.

With nodeMCU and lua we are somewhat abstracted from the troubles of developing applicatons using only the SDK and examples and the difficult to set up and use development environments. The downsides are all those already mentioned and dealing with limitations.

I think with a little enginuity, many good and quite functional applicatons can be built - you just have to pay attention to utilizing resources better and coding lua scripts efficiently, which is probably not as critical if developing directly using the SDK. Loading and dumping files/functions as needed will help with this while focusing on keeping necssary persistant functions lightweight.

Keep at it zeroday, we are behind you and will continue to help test, report and refine nodeMCU with you...
Last edited by yes8s on Thu Jan 08, 2015 6:49 am, edited 1 time in total.