Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
brutzler
@brutzler
@all: Hmmm...Imho this chat is not as frequently used as earlier times?
Everybody moved to arduino-esp32?
But is the ESP-32 already an alternative choice? Looks like there are still a lot of problems?
Thomas Cooper
@thomascoope
@rhertenstein_twitter you're in the wrong place - this is for ESP8266 boards. Might get more help on the Arduino forum @ arduino.cc
@brutzler just got a few to play with. Seems to answer my low power problems (on paper)
@brutzler there should still be a place for the 8266 for a while yet though due to $
Clemens Kirchgatterer
@everslick
Esp8266 still has some potential.
Develo
@devyte
About $4 difference between the esp and esp32=> major difference when you need to buy or sell a large number.
brutzler
@brutzler
For me is more important, that its working without problems. I have enough work with my way of programming ;-)
There its of no good idea for me to change to another (perhaps more powerful ┬ÁController) where I have to expect that some stuff is not working because of new development.
My highest respect to all workers at this project, but I think its better for me to wait some time for stable stuff.
Thomas Cooper
@thomascoope
@brutzler I'm just going to start developing for the 32 chip as I need deep sleep features that you can't run on the 8266. I'll be solely in the Arduino environment so I'll report back to you on any issues I encounter in a month or so.
brutzler
@brutzler
@thomascoope :+1: OK thx
Stavros Korokithakis
@skorokithakis
has anyone tried Nim for developing on the ESP?
Douglas Pearless
@DouglasPearless
has anyone tried to convert a "standard" Arduino sketch to use the me-no-dev/ESPAsyncTCP libraries?
for example me-no-dev/ESPAsyncTCP#67
Me No Dev
@me-no-dev
I have :D
Douglas Pearless
@DouglasPearless
Ah Ha, I figured you of all possible people might have :-)
I like the look of the library and have been scratching my head after reading as many examples as I could find; would you have an example you could share?
Me No Dev
@me-no-dev
what do you want to achieve?
Douglas Pearless
@DouglasPearless
I want to convert my sketch to use your async buffering library to solve a problem where the block TCP libraries that come with ESP8266/Arduino are causing me to lose characters; this is to add a telnet WiFi connection to Smoothie and other 3D printers / lasercutters
(I have spend a lot of hours tracing the problem down to the TCP end of the equation)
brutzler
@brutzler
let me hook up:
what is the advantage of a async-TCP-connection?
Me No Dev
@me-no-dev
why buffering?
@brutzler it does not hold the loop
@DouglasPearless there is an example for Async telnet in github
i think...
if you are going to push the telnet to the serial, you do not need to buffer
Douglas Pearless
@DouglasPearless
I have LaserWeb send data to the Smoothie via a telnet connection via an ESP8266; the replies lose characters etc. By logging to Serial1 I can see the data flowing to the Smoothie UART and back to the ESP8266 but sometimes not all the characters get back over WiFi to LaswerWeb
I did not see an Async telnet example, I will check again, just a moment
Me No Dev
@me-no-dev
not there... let me look
Douglas Pearless
@DouglasPearless
ok, thanks
here is an old example you can look at
Douglas Pearless
@DouglasPearless
cool
Is that a complete sketch as I get "'AsyncClient' has not been declared"
Me No Dev
@me-no-dev
missing the include it seems
Douglas Pearless
@DouglasPearless
:-)
Douglas Pearless
@DouglasPearless
I added the following includes and it now compiles:

include <ESPAsyncTCPbuffer.h>

include <ESP8266WiFi.h>

include <ArduinoOTA.h>

Me No Dev
@me-no-dev
you need ESPAsyncTCP not the buffer
Douglas Pearless
@DouglasPearless
oops, that wasn't supposed to be so big, I guess the "#" is some kind of markup
Me No Dev
@me-no-dev
yeah...
read on github markup :)
Douglas Pearless
@DouglasPearless

Interesting, if I remove that include I get:
AsyncTelnetServer:28: error: 'AsyncClient' has not been declared
void onPoll(void obj, AsyncClient c){

and a lot of other erro

Me No Dev
@me-no-dev
#include <ESPAsyncTCP.h>
Douglas Pearless
@DouglasPearless
your sketch requires either:
ESPAsyncTCP.h
or
ESPAsyncTCPbuffer.h
in order to compile
Me No Dev
@me-no-dev
do not remove it... use the non-buffer one
Douglas Pearless
@DouglasPearless
Ah, ok
now using the non buffer one; going to try in a minute; compiling and uploading now :-)
Douglas Pearless
@DouglasPearless
A couple of quick questions, where does os_printf send its output, can I get it to write to Serial1 ?
or does that actually go to the UART0 which I think it does
Douglas Pearless
@DouglasPearless
I will need to sit down and better understand how this works as I seen to be getting strange data back; it seems to be chopping lines (Strings) up ie. send "X250.80 S0.1516"
expecting back an
"ok"
but Smoothie replies:
"error: unsupported command - X:124"
so it appears something is going wrong send data across the ESP to Smoothies UART :-(
Me No Dev
@me-no-dev
well check the code :) probably sending new lines somwhere