These are chat archives for SmingHub/Sming

15th
Mar 2016
alon24
@alon24
Mar 15 2016 07:00 UTC
@robotiko any news about this?
@hreintke any thoughts about adding websocket client?
hreintke
@hreintke
Mar 15 2016 07:55 UTC
@alon24 : See PR #258 If you finish that (please do for both NONOS and RTOS) we can include the functionality
alon24
@alon24
Mar 15 2016 10:17 UTC
I can make the sample websocketclient compile in rtos. but it does not connect for me
robotiko
@robotiko
Mar 15 2016 10:17 UTC
@alon24 compile and work are usally quite different
alon24
@alon24
Mar 15 2016 10:18 UTC
that a good observation , I will cheish it for ever! - thank you CAPTAIN OBIVOUS!!! :)
robotiko
@robotiko
Mar 15 2016 10:20 UTC
buuuuu :D
that PR was laying there as untested and somebody reported that was not working..
becuase had soem local fixes.. not pushed..
so I guess
alon24
@alon24
Mar 15 2016 10:21 UTC
someone reported he made it work for him
robotiko
@robotiko
Mar 15 2016 10:21 UTC
but didnt share
alon24
@alon24
Mar 15 2016 10:22 UTC
@azmathmoosa here?
@hrsavla here?
(just touching all the bases with poeple , name calling them) :)
robotiko
@robotiko
Mar 15 2016 10:25 UTC
scooby doo, here?
:smile:
alon24
@alon24
Mar 15 2016 10:27 UTC
what I want ot know is where is Waldo
alon24
@alon24
Mar 15 2016 11:51 UTC
K so websocketclient DOES work
on rtos
I just did NOT check correctly (my theathering network (from 3g) does not pass websocket ports)
WebSocket message received:
Hello 21
TCP received new: 11 bytes
onReadyToSendData: 1
Static OnReceive buf = 2905
�    Hello 22
WebSocket message received:
Hello 22
TCP received new: 11 bytes
onReadyToSendData: 1
Static OnSent buf = 2920
TCP sent: 15
robotiko
@robotiko
Mar 15 2016 11:53 UTC
cool
alon24
@alon24
Mar 15 2016 11:53 UTC
(works ok) - the demo
alonewolfx2
@alonewolfx2
Mar 15 2016 12:37 UTC
@alon24 which demo?
alon24
@alon24
Mar 15 2016 12:38 UTC
websocketclient application
alonewolfx2
@alonewolfx2
Mar 15 2016 12:38 UTC
which repo
alon24
@alon24
Mar 15 2016 12:39 UTC
well I took @hrsvala code, pr/feature, imported to smingrtos, and just changes the imorts
it works ok, cannot test any more, but it wors no changes
alonewolfx2
@alonewolfx2
Mar 15 2016 12:40 UTC
ok i will test it
hreintke
@hreintke
Mar 15 2016 14:12 UTC
If it is the same code as the PR/feature branch, at least it will need updates before merging #282
alon24
@alon24
Mar 15 2016 14:14 UTC
@hreintke all i stated was that it seems to work, I did not have time to do other things to it :)
mainly following 282
hreintke
@hreintke
Mar 15 2016 14:48 UTC
@alon24 That what I expected. And nice to see that the functionality basically works in RTOS :smile:
alon24
@alon24
Mar 15 2016 15:30 UTC
well there was just one change - there was an randomSeed(analogRead(0)) - there is no analogRead in RTOS, so I changed it to randomSeed(1234); which is probebly no correct