mqtt.maxhelp 45.3 KB
Newer Older
alexandre burton's avatar
alexandre burton committed
1
2
3
4
5
6
7
8
9
10
11
12
{
	"patcher" : 	{
		"fileversion" : 1,
		"appversion" : 		{
			"major" : 8,
			"minor" : 1,
			"revision" : 6,
			"architecture" : "x64",
			"modernui" : 1
		}
,
		"classnamespace" : "box",
alexandre burton's avatar
alexandre burton committed
13
		"rect" : [ 177.0, 94.0, 1257.0, 888.0 ],
alexandre burton's avatar
alexandre burton committed
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
		"bglocked" : 0,
		"openinpresentation" : 0,
		"default_fontsize" : 12.0,
		"default_fontface" : 0,
		"default_fontname" : "Menlo",
		"gridonopen" : 1,
		"gridsize" : [ 15.0, 15.0 ],
		"gridsnaponopen" : 1,
		"objectsnaponopen" : 1,
		"statusbarvisible" : 2,
		"toolbarvisible" : 1,
		"lefttoolbarpinned" : 0,
		"toptoolbarpinned" : 0,
		"righttoolbarpinned" : 0,
		"bottomtoolbarpinned" : 0,
		"toolbars_unpinned_last_save" : 0,
		"tallnewobj" : 0,
		"boxanimatetime" : 200,
		"enablehscroll" : 1,
		"enablevscroll" : 1,
		"devicewidth" : 0.0,
		"description" : "",
		"digest" : "",
		"tags" : "",
		"style" : "",
		"subpatcher_template" : "",
		"assistshowspatchername" : 0,
		"boxes" : [ 			{
alexandre burton's avatar
alexandre burton committed
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
				"box" : 				{
					"id" : "obj-35",
					"linecount" : 3,
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 366.0, 631.0, 211.0, 48.0 ],
					"text" : "some NTP methods could be devised to find concrete diff/latency"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-4",
					"maxclass" : "led",
					"numinlets" : 1,
					"numoutlets" : 1,
					"outlettype" : [ "int" ],
					"parameter_enable" : 0,
					"patching_rect" : [ 610.0, 412.0, 24.0, 24.0 ]
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-33",
					"maxclass" : "message",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 218.0, 76.0, 59.0, 22.0 ],
					"text" : "connect"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-30",
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 231.0, 117.0, 342.0, 20.0 ],
					"text" : "connect <host>"
				}

			}
, 			{
				"box" : 				{
					"bubble" : 1,
					"fontname" : "Arial",
					"fontsize" : 13.0,
					"id" : "obj-28",
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 394.0, 330.0, 239.0, 25.0 ],
					"text" : "try connection on object instanciation"
				}

			}
, 			{
				"box" : 				{
					"bubble" : 1,
					"fontname" : "Arial",
					"fontsize" : 13.0,
					"id" : "obj-26",
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 394.0, 284.0, 184.0, 25.0 ],
					"text" : "MQTT sesssion cleanliness"
				}

			}
, 			{
				"box" : 				{
					"bubble" : 1,
					"fontname" : "Arial",
					"fontsize" : 13.0,
					"id" : "obj-24",
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 640.0, 261.0, 130.0, 25.0 ],
					"text" : "Broker credentials"
				}

			}
, 			{
				"box" : 				{
					"bubble" : 1,
					"fontname" : "Arial",
					"fontsize" : 13.0,
					"id" : "obj-22",
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 640.0, 238.0, 118.0, 25.0 ],
					"text" : "Broker host/port"
				}

			}
, 			{
				"box" : 				{
					"attr" : "password",
					"id" : "obj-18",
					"maxclass" : "attrui",
					"numinlets" : 1,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 459.0, 261.0, 177.0, 22.0 ]
				}

			}
, 			{
				"box" : 				{
					"attr" : "user",
					"id" : "obj-16",
					"maxclass" : "attrui",
					"numinlets" : 1,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 265.0, 261.0, 192.0, 22.0 ]
				}

			}
, 			{
				"box" : 				{
					"attr" : "port",
					"id" : "obj-9",
					"maxclass" : "attrui",
					"numinlets" : 1,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 522.0, 238.0, 114.0, 22.0 ],
					"text_width" : 50.0
				}

			}
, 			{
				"box" : 				{
					"attr" : "clean",
					"id" : "obj-8",
					"maxclass" : "attrui",
					"numinlets" : 1,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 265.0, 284.0, 123.0, 22.0 ]
				}

			}
, 			{
				"box" : 				{
					"attr" : "autoconnect",
					"id" : "obj-5",
					"maxclass" : "attrui",
					"numinlets" : 1,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 265.0, 330.0, 123.0, 22.0 ]
				}

			}
, 			{
				"box" : 				{
					"attr" : "id",
					"id" : "obj-2",
					"maxclass" : "attrui",
					"numinlets" : 1,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 265.0, 215.0, 371.0, 22.0 ]
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-29",
					"maxclass" : "message",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 1042.0, 622.0, 139.0, 22.0 ],
					"text" : "setup patate/bounk"
				}

			}
, 			{
				"box" : 				{
					"format" : 6,
					"id" : "obj-27",
					"maxclass" : "flonum",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "", "bang" ],
					"parameter_enable" : 0,
					"patching_rect" : [ 1006.0, 537.0, 50.0, 22.0 ]
				}

			}
, 			{
				"box" : 				{
					"format" : 6,
					"id" : "obj-25",
					"maxclass" : "flonum",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "", "bang" ],
					"parameter_enable" : 0,
					"patching_rect" : [ 937.0, 538.0, 50.0, 22.0 ]
				}

			}
, 			{
				"box" : 				{
					"format" : 6,
					"id" : "obj-23",
					"maxclass" : "flonum",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "", "bang" ],
					"parameter_enable" : 0,
					"patching_rect" : [ 868.0, 540.0, 50.0, 22.0 ]
				}

			}
, 			{
				"box" : 				{
					"format" : 6,
					"id" : "obj-21",
					"maxclass" : "flonum",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "", "bang" ],
					"parameter_enable" : 0,
					"patching_rect" : [ 990.0, 816.0, 50.0, 22.0 ]
				}

			}
, 			{
				"box" : 				{
					"format" : 6,
					"id" : "obj-19",
					"maxclass" : "flonum",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "", "bang" ],
					"parameter_enable" : 0,
					"patching_rect" : [ 920.0, 812.0, 50.0, 22.0 ]
				}

			}
, 			{
				"box" : 				{
					"format" : 6,
					"id" : "obj-17",
					"maxclass" : "flonum",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "", "bang" ],
					"parameter_enable" : 0,
					"patching_rect" : [ 856.0, 810.0, 50.0, 22.0 ]
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-14",
					"maxclass" : "newobj",
					"numinlets" : 2,
					"numoutlets" : 2,
					"outlettype" : [ "", "" ],
					"patching_rect" : [ 856.0, 729.0, 139.0, 22.0 ],
					"text" : "route patate/bounk"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-13",
					"maxclass" : "newobj",
					"numinlets" : 1,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 856.0, 622.0, 153.0, 22.0 ],
					"text" : "prepend patate/bounk"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-12",
					"maxclass" : "newobj",
					"numinlets" : 1,
					"numoutlets" : 3,
					"outlettype" : [ "float", "float", "float" ],
					"patching_rect" : [ 856.0, 768.0, 95.0, 22.0 ],
					"text" : "unpack f f f"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-10",
					"maxclass" : "newobj",
					"numinlets" : 3,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 854.5, 588.0, 81.0, 22.0 ],
					"text" : "pack f f f"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-7",
					"maxclass" : "newobj",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "", "" ],
					"patching_rect" : [ 856.0, 692.0, 182.0, 22.0 ],
					"text" : "mqtt @presume vec<float>"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-6",
					"maxclass" : "message",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 564.0, 484.0, 66.0, 22.0 ],
					"text" : "@presume"
				}

			}
, 			{
alexandre burton's avatar
alexandre burton committed
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
				"box" : 				{
					"id" : "obj-171",
					"maxclass" : "newobj",
					"numinlets" : 0,
					"numoutlets" : 0,
					"patcher" : 					{
						"fileversion" : 1,
						"appversion" : 						{
							"major" : 8,
							"minor" : 1,
							"revision" : 6,
							"architecture" : "x64",
							"modernui" : 1
						}
,
						"classnamespace" : "box",
alexandre burton's avatar
alexandre burton committed
396
						"rect" : [ 34.0, 56.0, 1026.0, 1110.0 ],
alexandre burton's avatar
alexandre burton committed
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
						"bglocked" : 0,
						"openinpresentation" : 0,
						"default_fontsize" : 12.0,
						"default_fontface" : 0,
						"default_fontname" : "Arial",
						"gridonopen" : 1,
						"gridsize" : [ 15.0, 15.0 ],
						"gridsnaponopen" : 1,
						"objectsnaponopen" : 1,
						"statusbarvisible" : 2,
						"toolbarvisible" : 1,
						"lefttoolbarpinned" : 0,
						"toptoolbarpinned" : 0,
						"righttoolbarpinned" : 0,
						"bottomtoolbarpinned" : 0,
						"toolbars_unpinned_last_save" : 0,
						"tallnewobj" : 0,
						"boxanimatetime" : 200,
						"enablehscroll" : 1,
						"enablevscroll" : 1,
						"devicewidth" : 0.0,
						"description" : "",
						"digest" : "",
						"tags" : "",
						"style" : "",
						"subpatcher_template" : "",
						"assistshowspatchername" : 0,
						"boxes" : [ 							{
alexandre burton's avatar
alexandre burton committed
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
								"box" : 								{
									"id" : "obj-7",
									"linecount" : 8,
									"maxclass" : "comment",
									"numinlets" : 1,
									"numoutlets" : 0,
									"patching_rect" : [ 739.0, 85.0, 150.0, 114.0 ],
									"text" : "float int (min, max, exp)\nascii\nrawbytes\nvec<type>\ntuple (mixed list)\njson\nmatrix\npacked-osc"
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-5",
									"linecount" : 5,
									"maxclass" : "comment",
									"numinlets" : 1,
									"numoutlets" : 0,
									"patching_rect" : [ 846.0, 497.0, 150.0, 74.0 ],
									"text" : "some inspiration from https://github.com/mqtt-smarthome/mqtt-smarthome/blob/master/Architecture.md"
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-3",
									"maxclass" : "comment",
									"numinlets" : 1,
									"numoutlets" : 0,
									"patching_rect" : [ 418.0, 241.0, 298.0, 34.0 ],
									"text" : "setup topic qos persistence type min max\n"
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-2",
									"linecount" : 11,
									"maxclass" : "comment",
									"numinlets" : 1,
									"numoutlets" : 0,
									"patching_rect" : [ 418.0, 85.0, 298.0, 167.0 ],
									"text" : "/family/group/parameter_name\n    /_value bytes\n    /_state 0,1,2\n    /_info\n        /_label \"parameter name\"\n        /_desc \"something bla bla.\"\n        /_type [sel]\n        /_spec (range? auto-vs-polled?)\n    /_ts (ms since set)\n    /_tc (ms since change)\n    /_get() (poll)\n"
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-1",
									"linecount" : 40,
									"maxclass" : "comment",
									"numinlets" : 1,
									"numoutlets" : 0,
									"patching_rect" : [ 80.0, 85.0, 301.0, 556.0 ],
									"text" : "MQTT is a raw binary protocol, meaning that the raw bytes published will be copied \"blindly\" by the broker to subscribed client.\n\nIt is convenient to use the protocol as an ASCII protocol as all clients, including human terminal forms, can exchange data in a readable manner. The straight 7-bit ASCII string is the simplest form; structured protocols such as JSON are popular higher-level approaches that allows more complex expression while maintaining ASCII simplicity.\n\nBut it is only a presumption; nothing prevents the underlying system to send around structures such as jitter matrice, or OSC packets, or MSP buffers, or MIDI events, or executable bytecode (and optionally apply compression to the packets — it is actually how encryption works in MQTT). It however diminishes intercompatibility in heterogenous networks as the receivers must know (or deduce) the encoding of the received packets, and have the capabiity to turn the binary data into the correct representation of it's contained values.\n\nSo if you're setting up something between 2 clients that you control, you can send whatever you want as you control both ends. \n\nIf you intend to bring in additioonal \n\nBy design MQTT does not provide a \"meta\" layer, or descriptors of the topics. It is up to the local applicationo.\n\n\nConcretely it means building some form of meta-protoccol that will bring \"intelligence\" to the low-level MQTT stuff being passed around. \n\n\n"
								}

							}
, 							{
alexandre burton's avatar
alexandre burton committed
484
485
								"box" : 								{
									"id" : "obj-122",
alexandre burton's avatar
alexandre burton committed
486
									"linecount" : 32,
alexandre burton's avatar
alexandre burton committed
487
488
489
									"maxclass" : "comment",
									"numinlets" : 1,
									"numoutlets" : 0,
alexandre burton's avatar
alexandre burton committed
490
491
									"patching_rect" : [ 418.0, 290.0, 298.0, 435.0 ],
									"text" : "Rant about TCP/UDP, binary vs ASCII, etc.\n\nMQTT is raw binary TCP protocol. Conventionally we've been trying to implement things in a structured format (ex: OSC) in order to normalize/restrict types while minimizing loss (even if padding is often into play). \n\nLikewise it's been said that as a \"send and forget\" protocol UDP is better suited for low-latency, time-critical event (such as sensor data), because no ACK overheard, and if a packet is late, it is already useless; retrying is pointless. \n\nThere are some advantages to TCP: it is inherently a bidirectional connection, so a scheme like the MQTT broker is easy to implement (with UDP, \"calling back\" the origin host is not so simple to do automatically/reliably if dynamic IPs and/or NAT is involved). And of course TCP is reliable so if you're sending an event that must be received, TCP will garantee it.\n\nIf you're building an instrument with sensors operating at 500Hz and aim for \"near physical\" latency, i hope you're doing it on a Bela with a tight interrupt callback method, and not through an Internet connection over your home wifi ending up in an event-driven-yet-polled, graphically specificed processing graph. \n\nFor everything else, MQTT/TCP is pretty great."
alexandre burton's avatar
alexandre burton committed
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
								}

							}
 ],
						"lines" : [  ]
					}
,
					"patching_rect" : [ 600.0, 667.0, 110.0, 22.0 ],
					"saved_object_attributes" : 					{
						"description" : "",
						"digest" : "",
						"globalpatchername" : "",
						"tags" : ""
					}
,
					"text" : "p RANT (draft)"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-170",
					"maxclass" : "newobj",
					"numinlets" : 0,
					"numoutlets" : 0,
					"patcher" : 					{
						"fileversion" : 1,
						"appversion" : 						{
							"major" : 8,
							"minor" : 1,
							"revision" : 6,
							"architecture" : "x64",
							"modernui" : 1
						}
,
						"classnamespace" : "box",
alexandre burton's avatar
alexandre burton committed
528
						"rect" : [ 59.0, 81.0, 558.0, 289.0 ],
alexandre burton's avatar
alexandre burton committed
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
						"bglocked" : 0,
						"openinpresentation" : 0,
						"default_fontsize" : 12.0,
						"default_fontface" : 0,
						"default_fontname" : "Arial",
						"gridonopen" : 1,
						"gridsize" : [ 15.0, 15.0 ],
						"gridsnaponopen" : 1,
						"objectsnaponopen" : 1,
						"statusbarvisible" : 2,
						"toolbarvisible" : 1,
						"lefttoolbarpinned" : 0,
						"toptoolbarpinned" : 0,
						"righttoolbarpinned" : 0,
						"bottomtoolbarpinned" : 0,
						"toolbars_unpinned_last_save" : 0,
						"tallnewobj" : 0,
						"boxanimatetime" : 200,
						"enablehscroll" : 1,
						"enablevscroll" : 1,
						"devicewidth" : 0.0,
						"description" : "",
						"digest" : "",
						"tags" : "",
						"style" : "",
						"subpatcher_template" : "",
						"assistshowspatchername" : 0,
						"boxes" : [ 							{
								"box" : 								{
									"id" : "obj-20",
alexandre burton's avatar
alexandre burton committed
559
									"linecount" : 17,
alexandre burton's avatar
alexandre burton committed
560
561
562
									"maxclass" : "comment",
									"numinlets" : 1,
									"numoutlets" : 0,
alexandre burton's avatar
alexandre burton committed
563
564
									"patching_rect" : [ 12.0, 14.0, 493.0, 234.0 ],
									"text" : "About MQTT Client IDs\n\nThe MQTT protocol requires all clients to have unique IDs -- the broker will abruptly and silently disconnect clients using the same ID until only one is left. The MQTT protocol does not provide feedback when that happens, so if your object systematically disconnects after a short moment, check that you're not getting kicked out because other clients are using the same ID.\n\nIf the attribute @id is not set, a random ID will be generated at object instanciation. In most cases it is probably OK (it does not affect the ability to subscribe and publish; access control of topics are unrelated to client IDs), unless you have special requirements tied to specific clients, or complex/arbitrary subscriptions that you want to maintain in non-clean-sessions.\n\nIt is probably a simpler design to re-subscribe your desired topics upon connection than rely on the broker to remember them in non-clean-sessions. (the global state is somewhat opaque, even if you control the MQTT broker)"
alexandre burton's avatar
alexandre burton committed
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
								}

							}
 ],
						"lines" : [  ]
					}
,
					"patching_rect" : [ 600.0, 631.0, 124.0, 22.0 ],
					"saved_object_attributes" : 					{
						"description" : "",
						"digest" : "",
						"globalpatchername" : "",
						"tags" : ""
					}
,
					"text" : "p MQTT-Client-ID"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-168",
					"maxclass" : "newobj",
					"numinlets" : 0,
					"numoutlets" : 0,
					"patcher" : 					{
						"fileversion" : 1,
						"appversion" : 						{
							"major" : 8,
							"minor" : 1,
							"revision" : 6,
							"architecture" : "x64",
							"modernui" : 1
						}
,
						"classnamespace" : "box",
						"rect" : [ 59.0, 81.0, 584.0, 654.0 ],
						"bglocked" : 0,
						"openinpresentation" : 0,
						"default_fontsize" : 12.0,
						"default_fontface" : 0,
						"default_fontname" : "Arial",
						"gridonopen" : 1,
						"gridsize" : [ 15.0, 15.0 ],
						"gridsnaponopen" : 1,
						"objectsnaponopen" : 1,
						"statusbarvisible" : 2,
						"toolbarvisible" : 1,
						"lefttoolbarpinned" : 0,
						"toptoolbarpinned" : 0,
						"righttoolbarpinned" : 0,
						"bottomtoolbarpinned" : 0,
						"toolbars_unpinned_last_save" : 0,
						"tallnewobj" : 0,
						"boxanimatetime" : 200,
						"enablehscroll" : 1,
						"enablevscroll" : 1,
						"devicewidth" : 0.0,
						"description" : "",
						"digest" : "",
						"tags" : "",
						"style" : "",
						"subpatcher_template" : "",
						"assistshowspatchername" : 0,
						"boxes" : [ 							{
alexandre burton's avatar
alexandre burton committed
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
								"box" : 								{
									"fontname" : "Arial",
									"fontsize" : 13.0,
									"id" : "obj-21",
									"maxclass" : "newobj",
									"numinlets" : 1,
									"numoutlets" : 5,
									"outlettype" : [ "", "", "", "", "" ],
									"patching_rect" : [ 158.0, 374.0, 112.0, 23.0 ],
									"text" : "regexp ^forum(.*)"
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-3",
									"maxclass" : "newobj",
									"numinlets" : 1,
									"numoutlets" : 1,
									"outlettype" : [ "" ],
									"patching_rect" : [ 156.0, 192.0, 92.0, 22.0 ],
									"text" : "sprintf forum%s"
								}

							}
, 							{
alexandre burton's avatar
alexandre burton committed
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
								"box" : 								{
									"id" : "obj-40",
									"linecount" : 3,
									"maxclass" : "comment",
									"numinlets" : 1,
									"numoutlets" : 0,
									"patching_rect" : [ 98.0, 582.5, 163.0, 47.0 ],
									"text" : "i get around 12ms roundtrip, which is pretty much the same as what ping reports"
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-31",
									"maxclass" : "number",
									"numinlets" : 1,
									"numoutlets" : 2,
									"outlettype" : [ "", "bang" ],
									"parameter_enable" : 0,
									"patching_rect" : [ 44.0, 595.0, 50.0, 22.0 ]
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-29",
									"maxclass" : "button",
									"numinlets" : 1,
									"numoutlets" : 1,
									"outlettype" : [ "bang" ],
									"parameter_enable" : 0,
									"patching_rect" : [ 70.0, 533.0, 24.0, 24.0 ]
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-27",
									"maxclass" : "button",
									"numinlets" : 1,
									"numoutlets" : 1,
									"outlettype" : [ "bang" ],
									"parameter_enable" : 0,
									"patching_rect" : [ 44.0, 533.0, 24.0, 24.0 ]
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-25",
									"maxclass" : "newobj",
									"numinlets" : 2,
									"numoutlets" : 2,
									"outlettype" : [ "float", "" ],
									"patching_rect" : [ 44.0, 568.0, 45.0, 22.0 ],
									"text" : "timer"
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-24",
									"maxclass" : "slider",
									"numinlets" : 1,
									"numoutlets" : 1,
									"outlettype" : [ "" ],
									"parameter_enable" : 0,
									"patching_rect" : [ 107.0, 531.0, 132.0, 24.0 ]
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-23",
									"maxclass" : "newobj",
									"numinlets" : 2,
									"numoutlets" : 2,
									"outlettype" : [ "", "" ],
alexandre burton's avatar
alexandre burton committed
734
735
									"patching_rect" : [ 107.0, 490.0, 101.0, 22.0 ],
									"text" : "route /osc/peanut"
alexandre burton's avatar
alexandre burton committed
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-22",
									"maxclass" : "slider",
									"numinlets" : 1,
									"numoutlets" : 1,
									"outlettype" : [ "" ],
									"parameter_enable" : 0,
									"patching_rect" : [ 107.0, 35.0, 132.0, 24.0 ]
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-11",
									"maxclass" : "message",
									"numinlets" : 2,
									"numoutlets" : 1,
									"outlettype" : [ "" ],
alexandre burton's avatar
alexandre burton committed
758
759
									"patching_rect" : [ 312.0, 102.0, 167.0, 22.0 ],
									"text" : "subscribe forum/osc/#"
alexandre burton's avatar
alexandre burton committed
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-8",
									"maxclass" : "newobj",
									"numinlets" : 1,
									"numoutlets" : 0,
									"patching_rect" : [ 107.0, 102.0, 138.0, 22.0 ],
									"text" : "udpsend 127.0.0.1 8889"
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-5",
									"maxclass" : "newobj",
									"numinlets" : 1,
									"numoutlets" : 1,
									"outlettype" : [ "" ],
									"patching_rect" : [ 107.0, 465.0, 97.0, 22.0 ],
									"text" : "udpreceive 8888"
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-4",
									"maxclass" : "message",
									"numinlets" : 2,
									"numoutlets" : 1,
									"outlettype" : [ "" ],
alexandre burton's avatar
alexandre burton committed
793
794
									"patching_rect" : [ 107.0, 76.0, 87.0, 22.0 ],
									"text" : "/osc/peanut $1"
alexandre burton's avatar
alexandre burton committed
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-2",
									"maxclass" : "toggle",
									"numinlets" : 1,
									"numoutlets" : 1,
									"outlettype" : [ "int" ],
									"parameter_enable" : 0,
									"patching_rect" : [ 174.0, 319.0, 24.0, 24.0 ]
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-166",
									"maxclass" : "newobj",
									"numinlets" : 1,
									"numoutlets" : 1,
									"outlettype" : [ "" ],
									"patching_rect" : [ 156.0, 243.0, 94.0, 22.0 ],
									"text" : "prepend publish"
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-165",
									"maxclass" : "newobj",
									"numinlets" : 2,
									"numoutlets" : 2,
									"outlettype" : [ "", "" ],
alexandre burton's avatar
alexandre burton committed
829
									"patching_rect" : [ 156.0, 217.0, 116.0, 22.0 ],
alexandre burton's avatar
alexandre burton committed
830
831
832
833
834
835
836
837
838
839
840
									"text" : "zl join"
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-164",
									"maxclass" : "newobj",
									"numinlets" : 1,
									"numoutlets" : 1,
									"outlettype" : [ "" ],
alexandre burton's avatar
alexandre burton committed
841
									"patching_rect" : [ 253.0, 192.0, 57.0, 22.0 ],
alexandre burton's avatar
alexandre burton committed
842
843
844
845
846
847
848
849
850
851
852
									"text" : "tosymbol"
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-163",
									"maxclass" : "newobj",
									"numinlets" : 2,
									"numoutlets" : 2,
									"outlettype" : [ "", "" ],
alexandre burton's avatar
alexandre burton committed
853
									"patching_rect" : [ 156.0, 162.0, 112.0, 22.0 ],
alexandre burton's avatar
alexandre burton committed
854
855
856
857
858
859
860
861
862
863
864
									"text" : "zl slice 1"
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-162",
									"maxclass" : "newobj",
									"numinlets" : 1,
									"numoutlets" : 1,
									"outlettype" : [ "" ],
alexandre burton's avatar
alexandre burton committed
865
									"patching_rect" : [ 156.0, 137.0, 97.0, 22.0 ],
alexandre burton's avatar
alexandre burton committed
866
867
868
869
870
871
872
873
874
875
									"text" : "udpreceive 8889"
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-161",
									"maxclass" : "newobj",
									"numinlets" : 1,
									"numoutlets" : 0,
alexandre burton's avatar
alexandre burton committed
876
									"patching_rect" : [ 181.25, 435.0, 138.0, 22.0 ],
alexandre burton's avatar
alexandre burton committed
877
878
879
880
881
882
883
884
885
886
887
									"text" : "udpsend 127.0.0.1 8888"
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-160",
									"maxclass" : "newobj",
									"numinlets" : 2,
									"numoutlets" : 2,
									"outlettype" : [ "", "" ],
alexandre burton's avatar
alexandre burton committed
888
									"patching_rect" : [ 181.25, 405.0, 114.75, 22.0 ],
alexandre burton's avatar
alexandre burton committed
889
890
891
892
893
894
895
896
897
898
899
									"text" : "zl join"
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-159",
									"maxclass" : "newobj",
									"numinlets" : 1,
									"numoutlets" : 1,
									"outlettype" : [ "" ],
alexandre burton's avatar
alexandre burton committed
900
									"patching_rect" : [ 277.0, 374.0, 71.0, 22.0 ],
alexandre burton's avatar
alexandre burton committed
901
902
903
904
905
906
907
908
909
910
911
									"text" : "fromsymbol"
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-158",
									"maxclass" : "newobj",
									"numinlets" : 1,
									"numoutlets" : 2,
									"outlettype" : [ "", "" ],
alexandre burton's avatar
alexandre burton committed
912
									"patching_rect" : [ 156.0, 348.0, 140.0, 22.0 ],
alexandre burton's avatar
alexandre burton committed
913
914
915
916
917
918
919
920
921
922
923
									"text" : "unpack s s"
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-157",
									"maxclass" : "message",
									"numinlets" : 2,
									"numoutlets" : 1,
									"outlettype" : [ "" ],
alexandre burton's avatar
alexandre burton committed
924
925
									"patching_rect" : [ 312.0, 75.0, 239.0, 22.0 ],
									"text" : "connect w.artificiel.org 1883 forum maxmsp"
alexandre burton's avatar
alexandre burton committed
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
								}

							}
, 							{
								"box" : 								{
									"id" : "obj-156",
									"maxclass" : "newobj",
									"numinlets" : 1,
									"numoutlets" : 2,
									"outlettype" : [ "", "" ],
									"patching_rect" : [ 156.0, 293.0, 32.0, 22.0 ],
									"text" : "mqtt"
								}

							}
 ],
						"lines" : [ 							{
								"patchline" : 								{
									"destination" : [ "obj-156", 0 ],
									"source" : [ "obj-11", 0 ]
								}

							}
, 							{
								"patchline" : 								{
									"destination" : [ "obj-158", 0 ],
									"source" : [ "obj-156", 0 ]
								}

							}
, 							{
								"patchline" : 								{
									"destination" : [ "obj-2", 0 ],
									"source" : [ "obj-156", 1 ]
								}

							}
, 							{
								"patchline" : 								{
									"destination" : [ "obj-156", 0 ],
									"source" : [ "obj-157", 0 ]
								}

							}
, 							{
								"patchline" : 								{
									"destination" : [ "obj-159", 0 ],
									"source" : [ "obj-158", 1 ]
								}

							}
, 							{
								"patchline" : 								{
alexandre burton's avatar
alexandre burton committed
979
									"destination" : [ "obj-21", 0 ],
alexandre burton's avatar
alexandre burton committed
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
									"source" : [ "obj-158", 0 ]
								}

							}
, 							{
								"patchline" : 								{
									"destination" : [ "obj-160", 1 ],
									"source" : [ "obj-159", 0 ]
								}

							}
, 							{
								"patchline" : 								{
									"destination" : [ "obj-161", 0 ],
									"source" : [ "obj-160", 0 ]
								}

							}
, 							{
								"patchline" : 								{
									"destination" : [ "obj-163", 0 ],
									"source" : [ "obj-162", 0 ]
								}

							}
, 							{
								"patchline" : 								{
									"destination" : [ "obj-164", 0 ],
									"source" : [ "obj-163", 1 ]
								}

							}
, 							{
								"patchline" : 								{
alexandre burton's avatar
alexandre burton committed
1014
									"destination" : [ "obj-3", 0 ],
alexandre burton's avatar
alexandre burton committed
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
									"source" : [ "obj-163", 0 ]
								}

							}
, 							{
								"patchline" : 								{
									"destination" : [ "obj-165", 1 ],
									"source" : [ "obj-164", 0 ]
								}

							}
, 							{
								"patchline" : 								{
									"destination" : [ "obj-166", 0 ],
									"source" : [ "obj-165", 0 ]
								}

							}
, 							{
								"patchline" : 								{
									"destination" : [ "obj-156", 0 ],
									"source" : [ "obj-166", 0 ]
								}

alexandre burton's avatar
alexandre burton committed
1039
1040
1041
1042
1043
1044
1045
							}
, 							{
								"patchline" : 								{
									"destination" : [ "obj-160", 0 ],
									"source" : [ "obj-21", 1 ]
								}

alexandre burton's avatar
alexandre burton committed
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
							}
, 							{
								"patchline" : 								{
									"destination" : [ "obj-27", 0 ],
									"midpoints" : [ 116.5, 63.5, 53.5, 63.5 ],
									"order" : 1,
									"source" : [ "obj-22", 0 ]
								}

							}
, 							{
								"patchline" : 								{
									"destination" : [ "obj-4", 0 ],
									"order" : 0,
									"source" : [ "obj-22", 0 ]
								}

							}
, 							{
								"patchline" : 								{
									"destination" : [ "obj-24", 0 ],
									"order" : 0,
									"source" : [ "obj-23", 0 ]
								}

							}
, 							{
								"patchline" : 								{
									"destination" : [ "obj-29", 0 ],
									"order" : 1,
									"source" : [ "obj-23", 0 ]
								}

							}
, 							{
								"patchline" : 								{
									"destination" : [ "obj-31", 0 ],
									"source" : [ "obj-25", 0 ]
								}

							}
, 							{
								"patchline" : 								{
									"destination" : [ "obj-25", 0 ],
									"source" : [ "obj-27", 0 ]
								}

							}
, 							{
								"patchline" : 								{
									"destination" : [ "obj-25", 1 ],
									"source" : [ "obj-29", 0 ]
								}

alexandre burton's avatar
alexandre burton committed
1100
1101
1102
1103
1104
1105
1106
							}
, 							{
								"patchline" : 								{
									"destination" : [ "obj-165", 0 ],
									"source" : [ "obj-3", 0 ]
								}

alexandre burton's avatar
alexandre burton committed
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
							}
, 							{
								"patchline" : 								{
									"destination" : [ "obj-8", 0 ],
									"source" : [ "obj-4", 0 ]
								}

							}
, 							{
								"patchline" : 								{
									"destination" : [ "obj-23", 0 ],
									"source" : [ "obj-5", 0 ]
								}

							}
 ]
					}
,
					"patching_rect" : [ 600.0, 596.0, 232.0, 22.0 ],
					"saved_object_attributes" : 					{
						"description" : "",
						"digest" : "",
						"globalpatchername" : "",
						"tags" : ""
					}
,
					"text" : "p MQTT-OSC bidirectional bridge"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-155",
alexandre burton's avatar
alexandre burton committed
1140
					"linecount" : 7,
alexandre burton's avatar
alexandre burton committed
1141
1142
1143
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
alexandre burton's avatar
alexandre burton committed
1144
1145
					"patching_rect" : [ 615.0, 3.0, 169.0, 104.0 ],
					"text" : "unlike unix paths, MQTT does not specify a toplevel slash (/). But you can put one in; it adds an unneeded level but that's OK."
alexandre burton's avatar
alexandre burton committed
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-154",
					"linecount" : 2,
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
alexandre burton's avatar
alexandre burton committed
1156
					"patching_rect" : [ 564.0, 164.0, 196.0, 34.0 ],
alexandre burton's avatar
alexandre burton committed
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
					"text" : "+ is single level wildcard\n# is unlimited wildcard"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-153",
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
alexandre burton's avatar
alexandre burton committed
1167
					"patching_rect" : [ 522.0, 122.0, 131.0, 20.0 ],
alexandre burton's avatar
alexandre burton committed
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
					"text" : "subscribe <topic>"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-152",
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
alexandre burton's avatar
alexandre burton committed
1178
					"patching_rect" : [ 231.0, 133.0, 342.0, 20.0 ],
alexandre burton's avatar
alexandre burton committed
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
					"text" : "connect <host> <port>"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-151",
					"linecount" : 3,
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 797.0, 170.0, 342.0, 48.0 ],
					"text" : "publish <topic> <data>\npublish <topic> <data> <QOS>\npublish <topic> <data> <QOS> <persitent>"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-150",
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
alexandre burton's avatar
alexandre burton committed
1201
					"patching_rect" : [ 231.0, 149.0, 342.0, 20.0 ],
alexandre burton's avatar
alexandre burton committed
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
					"text" : "connect <host> <port> <user> <password>"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-148",
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
alexandre burton's avatar
alexandre burton committed
1212
					"patching_rect" : [ 459.0, 444.0, 160.0, 20.0 ],
alexandre burton's avatar
alexandre burton committed
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
					"text" : "(100 Hz stream)"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-147",
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
alexandre burton's avatar
alexandre burton committed
1223
					"patching_rect" : [ 269.0, 760.0, 150.0, 20.0 ],
alexandre burton's avatar
alexandre burton committed
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
					"text" : "clock jitter"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-141",
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
alexandre burton's avatar
alexandre burton committed
1234
					"patching_rect" : [ 421.0, 809.0, 74.0, 20.0 ],
alexandre burton's avatar
alexandre burton committed
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
					"text" : "- on time"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-142",
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
alexandre burton's avatar
alexandre burton committed
1245
					"patching_rect" : [ 421.0, 779.0, 95.0, 20.0 ],
alexandre burton's avatar
alexandre burton committed
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
					"text" : "- 1ms early"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-143",
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
alexandre burton's avatar
alexandre burton committed
1256
					"patching_rect" : [ 421.0, 840.0, 88.0, 20.0 ],
alexandre burton's avatar
alexandre burton committed
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
					"text" : "- 1ms late"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-140",
					"maxclass" : "multislider",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "", "" ],
					"parameter_enable" : 0,
alexandre burton's avatar
alexandre burton committed
1269
					"patching_rect" : [ 216.0, 786.0, 203.0, 62.0 ],
alexandre burton's avatar
alexandre burton committed
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
					"setstyle" : 3
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-139",
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
alexandre burton's avatar
alexandre burton committed
1280
					"patching_rect" : [ 252.0, 852.0, 131.0, 20.0 ],
alexandre burton's avatar
alexandre burton committed
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
					"text" : "1 sec running avg"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-132",
					"maxclass" : "newobj",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "float" ],
alexandre burton's avatar
alexandre burton committed
1292
					"patching_rect" : [ 216.0, 759.0, 52.0, 22.0 ],
alexandre burton's avatar
alexandre burton committed
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
					"text" : "/ 100."
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-131",
					"maxclass" : "newobj",
					"numinlets" : 2,
					"numoutlets" : 2,
					"outlettype" : [ "", "" ],
alexandre burton's avatar
alexandre burton committed
1304
					"patching_rect" : [ 216.0, 733.0, 52.0, 22.0 ],
alexandre burton's avatar
alexandre burton committed
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
					"text" : "zl.sum"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-129",
					"maxclass" : "newobj",
					"numinlets" : 2,
					"numoutlets" : 2,
					"outlettype" : [ "", "" ],
alexandre burton's avatar
alexandre burton committed
1316
					"patching_rect" : [ 216.0, 703.0, 102.0, 22.0 ],
alexandre burton's avatar
alexandre burton committed
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
					"text" : "zl.stream 100"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-121",
					"linecount" : 6,
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
alexandre burton's avatar
alexandre burton committed
1328
					"patching_rect" : [ 40.0, 345.0, 161.0, 90.0 ],
alexandre burton's avatar
alexandre burton committed
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
					"text" : "The object maintains a thread to receive network events which triggers a callback that emits the message to the outlet"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-120",
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 697.0, 495.0, 500.0, 20.0 ],
					"text" : "MQTT QOS -- level 0 is probably what you want but see http://"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-119",
					"linecount" : 3,
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 757.0, 108.0, 410.0, 48.0 ],
					"text" : "Clean Session (a clean session's subscriptions are purged upon disconnect, otherwisee they are remembered by the broker on a client ID basis (see below)"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-118",
alexandre burton's avatar
alexandre burton committed
1359
					"linecount" : 5,
alexandre burton's avatar
alexandre burton committed
1360
1361
1362
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
alexandre burton's avatar
alexandre burton committed
1363
1364
					"patching_rect" : [ 697.0, 412.0, 500.0, 76.0 ],
					"text" : "MQTT Persistence flag (thenlast value is maintained by the broker, and emitted on future subscriptions). for instance, a work/state topic can contain a persistent state, and upon connection, a given worker can put itself in a given state. It is very cool as it turns the broker into a stateful model of your data."
alexandre burton's avatar
alexandre burton committed
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-117",
					"linecount" : 6,
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
alexandre burton's avatar
alexandre burton committed
1375
					"patching_rect" : [ 797.0, 287.0, 319.0, 90.0 ],
alexandre burton's avatar
alexandre burton committed
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
					"text" : "this will silently fail as the forum user is not authorized to access topics outside of the namespace used in this example. you may use your own broker, or contact sysadmin@artificiel.org if you want to use our broker for other things."
				}

			}
, 			{
				"box" : 				{
					"format" : 6,
					"id" : "obj-114",
					"maxclass" : "flonum",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "", "bang" ],
					"parameter_enable" : 0,
					"patching_rect" : [ 797.0, 225.0, 50.0, 22.0 ]
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-112",
					"maxclass" : "message",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
					"patching_rect" : [ 797.0, 255.0, 196.0, 22.0 ],
alexandre burton's avatar
alexandre burton committed
1401
					"text" : "publish forum/mything $1"
alexandre burton's avatar
alexandre burton committed
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-110",
					"maxclass" : "message",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
alexandre burton's avatar
alexandre burton committed
1412
1413
					"patching_rect" : [ 267.0, 440.0, 93.0, 22.0 ],
					"text" : "\"30.000000\""
alexandre burton's avatar
alexandre burton committed
1414
1415
1416
1417
1418
1419
1420
1421
1422
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-107",
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
alexandre burton's avatar
alexandre burton committed
1423
					"patching_rect" : [ 366.0, 610.0, 211.0, 20.0 ],
alexandre burton's avatar
alexandre burton committed
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
					"text" : "time diff (should be stable)"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-106",
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
alexandre burton's avatar
alexandre burton committed
1434
					"patching_rect" : [ 366.0, 555.0, 81.0, 20.0 ],
alexandre burton's avatar
alexandre burton committed
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
					"text" : "max uptime"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-102",
					"maxclass" : "number",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "", "bang" ],
					"parameter_enable" : 0,
alexandre burton's avatar
alexandre burton committed
1447
					"patching_rect" : [ 216.0, 555.0, 146.0, 22.0 ]
alexandre burton's avatar
alexandre burton committed
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-101",
					"maxclass" : "newobj",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "bang", "" ],
alexandre burton's avatar
alexandre burton committed
1458
					"patching_rect" : [ 216.0, 440.0, 45.0, 22.0 ],
alexandre burton's avatar
alexandre burton committed
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
					"text" : "t b s"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-100",
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
alexandre burton's avatar
alexandre burton committed
1469
					"patching_rect" : [ 394.0, 497.0, 160.0, 20.0 ],
alexandre burton's avatar
alexandre burton committed
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
					"text" : "system time on broker"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-92",
					"maxclass" : "newobj",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "int", "int" ],
alexandre burton's avatar
alexandre burton committed
1481
					"patching_rect" : [ 216.0, 640.0, 45.0, 22.0 ],
alexandre burton's avatar
alexandre burton committed
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
					"text" : "t i i"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-79",
					"maxclass" : "newobj",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "int" ],
alexandre burton's avatar
alexandre burton committed
1493
					"patching_rect" : [ 216.0, 675.0, 37.0, 22.0 ],
alexandre burton's avatar
alexandre burton committed
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
					"text" : "!- 0"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-78",
					"maxclass" : "newobj",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "int" ],
alexandre burton's avatar
alexandre burton committed
1505
					"patching_rect" : [ 216.0, 584.0, 37.0, 22.0 ],
alexandre burton's avatar
alexandre burton committed
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
					"text" : "!- 0"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-75",
					"maxclass" : "number",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "", "bang" ],
					"parameter_enable" : 0,
alexandre burton's avatar
alexandre burton committed
1518
					"patching_rect" : [ 216.0, 610.0, 146.0, 22.0 ]
alexandre burton's avatar
alexandre burton committed
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-73",
					"maxclass" : "newobj",
					"numinlets" : 1,
					"numoutlets" : 1,
					"outlettype" : [ "float" ],
alexandre burton's avatar
alexandre burton committed
1529
					"patching_rect" : [ 216.0, 527.0, 66.0, 22.0 ],
alexandre burton's avatar
alexandre burton committed
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
					"text" : "cpuclock"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-72",
					"maxclass" : "number",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "", "bang" ],
					"parameter_enable" : 0,
alexandre burton's avatar
alexandre burton committed
1542
					"patching_rect" : [ 242.0, 497.0, 146.0, 22.0 ]
alexandre burton's avatar
alexandre burton committed
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-70",
					"maxclass" : "newobj",
					"numinlets" : 1,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
alexandre burton's avatar
alexandre burton committed
1553
					"patching_rect" : [ 242.0, 470.0, 81.0, 22.0 ],
alexandre burton's avatar
alexandre burton committed
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
					"text" : "fromsymbol"
				}

			}
, 			{
				"box" : 				{
					"bubble" : 1,
					"fontname" : "Arial",
					"fontsize" : 13.0,
					"id" : "obj-34",
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
alexandre burton's avatar
alexandre burton committed
1567
					"patching_rect" : [ 640.0, 215.0, 116.0, 25.0 ],
alexandre burton's avatar
alexandre burton committed
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
					"text" : "MQTT Client ID"
				}

			}
, 			{
				"box" : 				{
					"bubble" : 1,
					"fontname" : "Arial",
					"fontsize" : 13.0,
					"id" : "obj-32",
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
alexandre burton's avatar
alexandre burton committed
1581
					"patching_rect" : [ 394.0, 307.0, 255.0, 25.0 ],
alexandre burton's avatar
alexandre burton committed
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
					"text" : "print non-error messages to the console"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-45",
					"maxclass" : "newobj",
					"numinlets" : 3,
					"numoutlets" : 3,
					"outlettype" : [ "", "", "" ],
alexandre burton's avatar
alexandre burton committed
1593
1594
					"patching_rect" : [ 216.0, 416.0, 269.0, 22.0 ],
					"text" : "route forum/time@100Hz forum/mything"
alexandre burton's avatar
alexandre burton committed
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-3",
					"maxclass" : "message",
					"numinlets" : 2,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
alexandre burton's avatar
alexandre burton committed
1605
					"patching_rect" : [ 17.5, 196.0, 196.0, 22.0 ],
alexandre burton's avatar
alexandre burton committed
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
					"text" : "subscribe forum/#"
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-1",
					"maxclass" : "newobj",
					"numinlets" : 1,
					"numoutlets" : 2,
					"outlettype" : [ "", "" ],
1617
1618
					"patching_rect" : [ 216.0, 379.0, 521.0, 22.0 ],
					"text" : "mqtt @host w.artificiel.org @user forum @password maxmsp @autoconnect 1"
alexandre burton's avatar
alexandre burton committed
1619
1620
1621
1622
1623
				}

			}
, 			{
				"box" : 				{
alexandre burton's avatar
alexandre burton committed
1624
					"attr" : "host",
alexandre burton's avatar
alexandre burton committed
1625
1626
1627
1628
1629
					"id" : "obj-11",
					"maxclass" : "attrui",
					"numinlets" : 1,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
alexandre burton's avatar
alexandre burton committed
1630
					"patching_rect" : [ 265.0, 238.0, 255.0, 22.0 ]
alexandre burton's avatar
alexandre burton committed
1631
1632
1633
1634
1635
				}

			}
, 			{
				"box" : 				{
alexandre burton's avatar
alexandre burton committed
1636
					"attr" : "verbose",
alexandre burton's avatar
alexandre burton committed
1637
1638
1639
1640
1641
					"id" : "obj-15",
					"maxclass" : "attrui",
					"numinlets" : 1,
					"numoutlets" : 1,
					"outlettype" : [ "" ],
alexandre burton's avatar
alexandre burton committed
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
					"patching_rect" : [ 265.0, 307.0, 123.0, 22.0 ]
				}

			}
, 			{
				"box" : 				{
					"id" : "obj-31",
					"maxclass" : "comment",
					"numinlets" : 1,
					"numoutlets" : 0,
					"patching_rect" : [ 231.0, 100.0, 342.0, 20.0 ],
					"text" : "connect"
alexandre burton's avatar
alexandre burton committed
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
				}

			}
 ],
		"lines" : [ 			{
				"patchline" : 				{
					"destination" : [ "obj-4", 0 ],
					"source" : [ "obj-1", 1 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-45", 0 ],
					"source" : [ "obj-1", 0 ]
				}

alexandre burton's avatar
alexandre burton committed
1671
1672
1673
1674
1675
1676
1677
			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-13", 0 ],
					"source" : [ "obj-10", 0 ]
				}

alexandre burton's avatar
alexandre burton committed
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-70", 0 ],
					"source" : [ "obj-101", 1 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-73", 0 ],
					"source" : [ "obj-101", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-78", 0 ],
					"source" : [ "obj-102", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-1", 0 ],
					"source" : [ "obj-11", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-1", 0 ],
					"source" : [ "obj-112", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-112", 0 ],
					"source" : [ "obj-114", 0 ]
				}

alexandre burton's avatar
alexandre burton committed
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-17", 0 ],
					"source" : [ "obj-12", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-19", 0 ],
					"source" : [ "obj-12", 1 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-21", 0 ],
					"source" : [ "obj-12", 2 ]
				}

alexandre burton's avatar
alexandre burton committed
1741
1742
1743
1744
1745
1746
1747
			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-131", 0 ],
					"source" : [ "obj-129", 0 ]
				}

alexandre burton's avatar
alexandre burton committed
1748
1749
1750
1751
1752
1753
1754
			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-7", 0 ],
					"source" : [ "obj-13", 0 ]
				}

alexandre burton's avatar
alexandre burton committed
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-132", 0 ],
					"source" : [ "obj-131", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-140", 0 ],
					"source" : [ "obj-132", 0 ]
				}

alexandre burton's avatar
alexandre burton committed
1769
1770
1771
1772
1773
1774
1775
			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-12", 0 ],
					"source" : [ "obj-14", 0 ]
				}

alexandre burton's avatar
alexandre burton committed
1776
1777
1778
1779
1780
1781
1782
			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-1", 0 ],
					"source" : [ "obj-15", 0 ]
				}

alexandre burton's avatar
alexandre burton committed
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-1", 0 ],
					"source" : [ "obj-16", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-1", 0 ],
					"source" : [ "obj-18", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-1", 0 ],
					"source" : [ "obj-2", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-10", 0 ],
					"source" : [ "obj-23", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-10", 1 ],
					"source" : [ "obj-25", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-10", 2 ],
					"source" : [ "obj-27", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-7", 0 ],
					"source" : [ "obj-29", 0 ]
				}

alexandre burton's avatar
alexandre burton committed
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-1", 0 ],
					"source" : [ "obj-3", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-1", 0 ],
alexandre burton's avatar
alexandre burton committed
1843
					"source" : [ "obj-33", 0 ]
alexandre burton's avatar
alexandre burton committed
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-101", 0 ],
					"source" : [ "obj-45", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-110", 1 ],
					"source" : [ "obj-45", 1 ]
				}

alexandre burton's avatar
alexandre burton committed
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-1", 0 ],
					"source" : [ "obj-5", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-14", 0 ],
					"source" : [ "obj-7", 0 ]
				}

alexandre burton's avatar
alexandre burton committed
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-72", 0 ],
					"source" : [ "obj-70", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-78", 1 ],
					"source" : [ "obj-72", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-102", 0 ],
					"source" : [ "obj-73", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-92", 0 ],
					"source" : [ "obj-75", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-75", 0 ],
					"source" : [ "obj-78", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-129", 0 ],
					"source" : [ "obj-79", 0 ]
				}

alexandre burton's avatar
alexandre burton committed
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-1", 0 ],
					"source" : [ "obj-8", 0 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-1", 0 ],
					"source" : [ "obj-9", 0 ]
				}

alexandre burton's avatar
alexandre burton committed
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-79", 0 ],
					"source" : [ "obj-92", 1 ]
				}

			}
, 			{
				"patchline" : 				{
					"destination" : [ "obj-79", 1 ],
					"source" : [ "obj-92", 0 ]
				}

			}
 ],
		"dependency_cache" : [ 			{
				"name" : "mqtt.mxo",
				"type" : "iLaX"
			}
 ],
		"autosave" : 0
	}

}