These are chat archives for SmingHub/Sming

30th
Nov 2016
slaff
@slaff
Nov 30 2016 10:29
@avr39-ripe I think I have a solution for the problems with Fatal exception (28): epc1=0x4000228b. Pull the latest changes for Websockets_sample with SSL and recompile the sample.
Alexander V. Ribchansky
@avr39-ripe
Nov 30 2016 11:14
@slaff commented in your PR..
@slaff in short - works partly, do not receive any messages after re-connect
first run of programm works just fine
slaff
@slaff
Nov 30 2016 11:17
@avr39-ripe it seems to work for me:
rBoot Option: Big flash
rBoot Option: GPIO skip mode (16)

Booting rom 0.
��r�l�l�

         �l`��r�l�l�


                      l`��r�l
                              �

                               ll`rl+TCP connection


mode : sta(18:fe:34:f3:74:e7)
add if0
f r0, scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 5
cnt 

connected with ......, channel 6
dhcp client start...
ip:192.168.21.110,mask:255.255.255.0,gw:192.168.21.1
GOTIP - IP: 192.168.21.110, MASK: 255.255.255.0, GW: 192.168.21.1
Connecting to Websocket Server wss://echo.websocket.org
please start sntp first !
ssl->need_bytes=7060 > 6859
please start sntp first !
Sending websocket message: Hello 0
WebSocket message received: Hello 0
Free Heap: 30520
Sending websocket message: Hello 1
WebSocket message received: Hello 1
Free Heap: 30520
Sending websocket message: Hello 2
WebSocket message received: Hello 2
Free Heap: 30520
Sending websocket message: Hello 3
WebSocket message received: Hello 3
Free Heap: 30520
Sending websocket message: Hello 4
WebSocket message received: Hello 4
Free Heap: 30520
Sending websocket message: Hello 5
pm open,type:2 0
Sending websocket message: Hello 6
WebSocket message received: Hello 5
Free Heap: 28896
WebSocket message received: Hello 6
Free Heap: 30520
Sending websocket message: Hello 7
WebSocket message received: Hello 7
Free Heap: 30520
Sending websocket message: Hello 8
Sending websocket message: Hello 9
WebSocket message received: Hello 8
Free Heap: 28896
WebSocket message received: Hello 9
Free Heap: 30496
Sending websocket message: Hello 10
WebSocket message received: Hello 10
Free Heap: 30488
End Websocket client session
Websocket Client Disconnected Normally. End of program ..
Alexander V. Ribchansky
@avr39-ripe
Nov 30 2016 11:18
yes.. it works on FIRST run.. try to wait a MINUTE, it will try to reconnect and no messages are received any more..
without SSL it survives meny reconnects
slaff
@slaff
Nov 30 2016 11:19
ok, I will check that too...
zhivko
@zhivko
Nov 30 2016 19:48
@hreintke : have you created fork of https://github.com/espressif/arduino-esp32.git ?
@hreintke: I would be interested to check HttpServer if you have ported it there also...
hreintke
@hreintke
Nov 30 2016 21:46
@zhivko :
No not yet a fork. Still waiting for my nodemcu32 to arrive.
Currently I am using arduino-esp8266 with ESPAsyncTCP and ESPAsyncWebServer which includes websockets.
Working is quite similar to Sming (and even SSL ready, although I am not using that)
Now porting the CommandProcessing on top of it.
The Sming httpserver based on Arduino-esp8266 is just in a "project" no library and far from complete.
hreintke
@hreintke
Nov 30 2016 21:52
@avr39-ripe :
The csum err comes when the "iram1_0_seg : org = 0x40100000, len = 0x9000" is to small.
Alexander V. Ribchansky
@avr39-ripe
Nov 30 2016 22:52
@hreintke thanks! we fix this by switching to rboot.
@hreintke can you tell what Sming lack to use c++ function bind etc that you told me about? When I try to port asynctcp to sming I do not overcome this..