This is running on the linux version of espurino, and will apply to other boards too.
It looks like the dSnd part of the underyling socket is growing each second evert time the model is updated...
model
I've tried to do a simplier use case, but have not yet got a simple case working, so I'll just post what I have so far...
the output of trace() shows the dSnd string getting larger each iteration...
trace()
>trace(); #1[r2,l1] Object { #2[r1,l2] Name String [1 blocks] "\xFF" #3[r1,l2] Object { #6[r1,l2] Name String [1 blocks] "timers" #7[r2,l1] Array(8) [ #382[r1,l2] Name Integer 1 #378[r1,l1] Object { #380[r1,l2] Name String [1 blocks] "time"= int 705003 #381[r1,l2] Name String [1 blocks] "interval"= int 1000000 #379[r1,l2] Name String [1 blocks] "callback" #358[r2,l1] ... } #834[r1,l2] Name Integer 3 #830[r1,l1] Object { #819[r1,l2] Name String [1 blocks] "time"= int 693088 #820[r1,l2] Name String [1 blocks] "interval"= int 1000000 #803[r1,l2] Name String [1 blocks] "callback" #890[r2,l1] Function { #867[r1,l2] Name String [1 blocks] "\xFFcod" #1006[r1,l1] FlatString [3 blocks] "var s=JSON.stringify(model);\n ws.send(s);\n s=null;" #779[r1,l2] Name String [1 blocks] "\xFFsco" #847[r2,l1] Function { #781[r1,l2] Name Param "ws" #926[r1,l1] Object { #927[r1,l2] Name String [2 blocks] "__proto__" #151[r4,l1] ... #951[r1,l2] Name String [1 blocks] "socket" #945[r1,l1] Object { #944[r1,l2] Name String [2 blocks] "__proto__" #394[r4,l1] ... #863[r1,l2] Name String [1 blocks] "dSnd" #5[r1,l1] String [1171 blocks] "\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"counter\":5373,\"counterstr\":\"01:29:34\",\"free\":3415,\"usage\":681}\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"counter\":5373,\"counterstr\":\"01:29:34\",\"free\":3415,\"usage\":681}\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"counter\":5400,\"counterstr\":\"01:29:33\",\"free\":3238,\"usage\":858}\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"counter\":5399,\"counterstr\":\"01:30:00\",\"free\":3234,\"usage\":862}\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"counter\":5398,\"counterstr\":\"01:29:59\",\"free\":3229,\"usage\":867}\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"counter\":5397,\"counterstr\":\"01:29:58\",\"free\":3225,\"usage\":871}\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"counter\":5396,\"counterstr\":\"01:29:57\",\"free\":3220,\"usage\":876}\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"counter\":5395,\"counterstr\":\"01:29:56\",\"free\":3216,\"usage\":880}\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"counter\":5394,\"counterstr\":\"01:29:55\",\"free\":3211,\"usage\":885}\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"counter\":5393,\"counterstr\":\"01:29:54\",\"free\":3207,\"usage\":889}\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"counter\":5392,\"counterstr\":\"01:29:53\",\"free\":3202,\"usage\":894}\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"counter\":5391,\"counterstr\":\"01:29:52\",\"free\":3198,\"usage\":898}\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"counter\":5390,\"counterstr\":\"01:29:51\",\"free\":3193,\"usage\":903}\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"counter\":5389,\"counterstr\":\"01:29:50\",\"free\":3189,\"usage\":907}\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"counter\":5388,\"counterstr\":\"01:29:49\",\"free\":3184,\"usage\":912}\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"counter\":5387,\"counterstr\":\"01:29:48\",\"free\":3180,\"usage\":916}\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"counter\":5386,\"counterstr\":\"01:29:47\",\"free\":3175,\"usage\":921}\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"counter\":5385,\"counterstr\":\"01:29:46\",\"free\":3171,\"usage\":925}\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"counter\":5384,\"counterstr\":\"01:29:45\",\"free\":3166,\"usage\":930}\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"counter\":5383,\"counterstr\":\"01:29:44\",\"free\":3162,\"usage\":934}\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"counter\":5382,\"counterstr\":\"01:29:43\",\"free\":3157,\"usage\":939}\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"counter\":5381,\"counterstr\":\"01:29:42\",\"free\":3153,\"usage\":943}\x81j{\"setpoint\":66,\"timer\":\"90\",\"temp\":[50,50],\"countermore.. ....
@Wilberforce started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
This is running on the linux version of espurino, and will apply to other boards too.
It looks like the dSnd part of the underyling socket is growing each second evert time the
model
is updated...I've tried to do a simplier use case, but have not yet got a simple case working, so I'll just post what I have so far...
the output of
trace()
shows the dSnd string getting larger each iteration...