by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Markus
@Links2004
good to hear that :)
d-anders
@d-anders
going to hook up a ds18b20 to it now
fhernand
@fhernand

ok, I tried it out, I usually get this exception, for LoadProhibitedCause:
[SETUP] BOOT WAIT 4...
[SETUP] BOOT WAIT 3...
[SETUP] BOOT WAIT 2...
[SETUP] BOOT WAIT 1...
LmacRxBlk:1
LmacRxBlk:1
LmacRxBlk:1
[WSc] Connected to url: /
[WSc] get text: Test
[WSc] get text: Test
Fatal exception (28):
epc1=0x4021ba99, epc2=0x00000000, epc3=0x00000000, excvaddr=0x000000ca, depc=0x00000000
rm match
del if0
bcn 0
del if1
usl
sul 0 0

ets Jan 8 2013,rst cause:4, boot mode:(3,0)

wdt reset
load 0x40100000, len 29512, room 16
tail 8
chksum 0xba
load 0x3ffe8000, len 1532, room 0
tail 12
chksum 0x84
ho 0 tail 12 room 4
load 0x3ffe8600, len 6320, room 12
tail 4
chksum 0xc5
csum 0xc5
r‚

Markus
@Links2004
what is your ws server doing?
simply echo?
fhernand
@fhernand
yes, it's the one at echo.webserver.org
Markus
@Links2004
k will try it.
fhernand
@fhernand
sorry, wcho.websocket.org
echo.websocket.org
Markus
@Links2004
working fine by me, witch version of ESP8266 and websockets do you use?
fhernand
@fhernand
ESP8266: 1.6.4-673-g8cd3697
Markus
@Links2004
the latest version is: 1.6.5-947-g39819f0 can you update?
fhernand
@fhernand
ok, I will do that. Where can I see the version of arduinoWebsockets?
Markus
@Links2004
only by the sha1 git hash
fhernand
@fhernand
ok, I downloaded it as zip on July 20th. I will clone it instead.
Markus
@Links2004
i did some more tests and sending in each loop to echo.webserver.org is a bit over kill, we also echo back in the event handler,
at some point the ESP tcp core is overloaded and stops the connection, but no crash.
d-anders
@d-anders
if it keeps crashing maybe you should check your power supply fhernand
fhernand
@fhernand
ok, right, I will check that
d-anders
@d-anders
i ran mine using a cheap bench supply, but it was unstable
fhernand
@fhernand
ok, updated esp8266, arduinoWebsockes and using a stable power supply now. It does not crash anymore. Thanks guys!
fhernand
@fhernand

LmacRxBlk:1 happens sometimes. I implemented the solution to #50, but it still occurs. Excerpt from debug output:
[WS][0][sendFrame] ------- send massage frame -------
[WS][0][sendFrame] fin: 1 opCode: 1 mask: 1 length: 4
[WS][0][sendFrame] text: Test
:wr

:rch 24, 6

LmacRxBlk:1
LmacRxBlk:1
LmacRxBlk:1
:er -8 6 1

Markus
@Links2004
yes thats the overload i write over. you send every loop a message, this message get echoed by the server and then goes to the event handler, there is it send back again, in the next loop you send a new message and you resive 2 new, this goes strait to over load. remove the echo in the event or send only one.
d-anders
@d-anders
or add a delay after sending
Markus
@Links2004
then the RX also is blocked
d-anders
@d-anders
oh, i thought delay was non-blocking on esp8266
Markus
@Links2004
its block the arduino task
and there the websocket is handled
d-anders
@d-anders
watching an updating graph of my water getting called server over websockets - exciting stuff!
probonopd
@probonopd
d-anders, how is WebSockets performance compared to HTTP POST requests?
d-anders
@d-anders
havent tried using post or get
at the moment it is just updating every 2 seconds or so (using ds18b20)
for high freq stuff ws should be good though. no need to reestablish connection and no polling
d-anders
@d-anders
with a quick sensor (or what you are getting data from) i guess you could easily do 100hz or so, but maybe @Links2004 knows?
probonopd
@probonopd
i am trying to write a wifi-to-infrared remote control system and http seems too slow on the esp
it's not nice to wait for 2 secs after you have pressed a key
;)
d-anders
@d-anders
websockets uste http as well
but keeps connection open
if you don't need to use a webinterface i guess you should go with raw tcp
probonopd
@probonopd
yes, i wonder how much that improves things
d-anders
@d-anders
a lot i guess
probonopd
@probonopd
well i want a web interface for the remote control buttons
d-anders
@d-anders
links websocket lib has worked perfectly for me
probonopd
@probonopd
raw tcp is almost instant, i am using that too
only issue, the android devices i am targeting won't do websockets without additional software
d-anders
@d-anders
?
sounds strange, old android?
i think newer android has websocket support in the browser
probonopd
@probonopd
yes i am running android 2.3 and android 4
d-anders
@d-anders
wow, 2.3 :)