#N canvas 854 72 607 550 10; #X declare -lib maxlib -lib oscx -lib mrpeach; #X declare -lib mrpeach -lib moocow; #X msg 85 75 disconnect; #X text 168 74 <-- disconnect when you are done to free the port; #X msg 64 48 connect comj3426.com.bth.se 9035; #X obj 82 186 unpack 0 0 0 0; #X floatatom 82 209 3 0 0 0 - - -; #X floatatom 113 209 3 0 0 0 - - -; #X floatatom 145 209 3 0 0 0 - - -; #X floatatom 177 209 3 0 0 0 - - -; #X text 42 208 from; #X obj 102 160 tgl 15 0 empty empty connected 18 7 0 8 -24198 -13381 -1 0 1; #X text 113 260 Received messages are output as a list of bytes; #X obj 62 261 spigot; #X obj 101 238 tgl 15 0 empty empty enable_print 18 7 0 8 -24198 -13381 -1 0 1; #X obj 62 290 print >>>; #X obj 62 134 tcpclient; #X obj 62 466 import maxlib oscx mrpeach; #X obj 63 425 import mrpeach moocow; #X text 278 47 <-- first connect to the server; #X text 134 290 data is: typedef struct int var_code \; int sample_time \; int hr \; float hs \; phy_data \;; #X text 221 206 First number 2 [fixed] in bytes; #X connect 0 0 14 0; #X connect 2 0 14 0; #X connect 3 0 4 0; #X connect 3 1 5 0; #X connect 3 2 6 0; #X connect 3 3 7 0; #X connect 11 0 13 0; #X connect 12 0 11 1; #X connect 14 0 11 0; #X connect 14 0 3 0; #X connect 14 2 9 0;