These are chat archives for esp8266/Arduino

25th
Jul 2015
Harrison Mclean
@h4rm0n1c
Jul 25 2015 14:48

I got timer0 running as was suggested. Look what I did!

https://www.youtube.com/watch?v=HRmOZougwhw

probonopd
@probonopd
Jul 25 2015 15:11
nice!
Harrison Mclean
@h4rm0n1c
Jul 25 2015 15:24
Thanks, the library port will be up soonish (within the next few days), if I get it right, Freetronics may even merge it back into their repo.
fhernand
@fhernand
Jul 25 2015 16:11
hey all, I'm interested in learning about esp8266. I have this ESP8266EX based component (http://shop.in-circuit.de/product_info.php?products_id=67) and an SPI OLED screen working with Links2004's arduinoWebsockets. Trying to understand what is missing to implement a websocket client that implements TLS (I've just read that some work is still needed). Some questions to you: What is your setup to test/debug your developments? Is there something like an emulator, or do you always need to upload the code? How can you debug the whole socket creation and handshake process?
Markus
@Links2004
Jul 25 2015 16:28
for webWockets enable the debug here:
https://github.com/Links2004/arduinoWebSockets/blob/master/src/WebSockets.h#L40
basic system debug add
Serial.setDebugOutput(true); after Serial.begin
for network debug:
https://github.com/esp8266/Arduino/blob/esp8266/hardware/esp8266com/esp8266/cores/esp8266/debug.h#L5
there is no emulator we always test on real devices.
I run the Serial1 for all my debugging to keep Serial free for usage.

for TLS the abstraction layer from SDK to "Arduino" is missing see:

#43

d-anders
@d-anders
Jul 25 2015 16:45
are websockets working well?
on the esp8266 i mean
i was going to implement a basic websocket server, but i guess there is no need :)
fhernand
@fhernand
Jul 25 2015 17:02
Ok, i will try that out, thanks!
Markus
@Links2004
Jul 25 2015 18:08
yes they working, server and client.
https://github.com/Links2004/arduinoWebSockets
d-anders
@d-anders
Jul 25 2015 18:16
nice, will use them tonight or tomorrow
how many simultaneous (passive) clients can it handle if not doing much more?
Markus
@Links2004
Jul 25 2015 18:18
the code can handle 5 active clients ( this is the max for tcp connections on ESP)
d-anders
@d-anders
Jul 25 2015 18:18
nice