blob: 9599b90f545d51492c2ff2e31414d3b76f46fcff [file] [log] [blame]
Hono Bot8fa7d952021-07-14 01:12:12 +00001<!DOCTYPE html>
2<html lang="1.9" class="js csstransforms3d">
3 <head>
4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <meta name="generator" content="Hugo 0.81.0" />
7 <meta name="description" content="A set of micro-services for connecting millions of devices.">
8<meta name="author" content="The Eclipse Hono Project">
9
10 <link rel="apple-touch-icon" sizes="180x180" href="/hono/docs/favicon/apple-touch-icon.png">
11<link rel="icon" type="image/png" sizes="48x48" href="/hono/docs/favicon/favicon-48x48.png">
12<link rel="icon" type="image/png" sizes="32x32" href="/hono/docs/favicon/favicon-32x32.png">
13<link rel="icon" type="image/png" sizes="16x16" href="/hono/docs/favicon/favicon-16x16.png">
14<link rel="manifest" href="/hono/docs/favicon/site.webmanifest">
15<link rel="mask-icon" href="/hono/docs/favicon/safari-pinned-tab.svg" color="#5bbad5">
16<link rel="shortcut icon" href="/hono/docs/favicon/favicon.ico">
17<meta name="msapplication-TileColor" content="#da532c">
18<meta name="msapplication-config" content="/hono/docs/favicon/browserconfig.xml">
19<meta name="theme-color" content="#ffffff">
20
21 <title>CoAP Adapter Configuration :: Eclipse Hono&trade; Vers.: 1.9</title>
22
23
Hono Bot6cac68b2021-07-16 01:10:29 +000024 <link href="/hono/docs/css/nucleus.css?1626397806" rel="stylesheet">
25 <link href="/hono/docs/css/fontawesome-all.min.css?1626397806" rel="stylesheet">
26 <link href="/hono/docs/css/hybrid.css?1626397806" rel="stylesheet">
27 <link href="/hono/docs/css/featherlight.min.css?1626397806" rel="stylesheet">
28 <link href="/hono/docs/css/perfect-scrollbar.min.css?1626397806" rel="stylesheet">
29 <link href="/hono/docs/css/auto-complete.css?1626397806" rel="stylesheet">
30 <link href="/hono/docs/css/atom-one-dark-reasonable.css?1626397806" rel="stylesheet">
31 <link href="/hono/docs/css/theme.css?1626397806" rel="stylesheet">
32 <link href="/hono/docs/css/hugo-theme.css?1626397806" rel="stylesheet">
Hono Bot8fa7d952021-07-14 01:12:12 +000033
Hono Bot6cac68b2021-07-16 01:10:29 +000034 <link href="/hono/docs/css/theme-hono.css?1626397806" rel="stylesheet">
Hono Bot8fa7d952021-07-14 01:12:12 +000035
Hono Bot6cac68b2021-07-16 01:10:29 +000036 <link href="/hono/docs/css/hono.css?1626397806" rel="stylesheet">
Hono Bot8fa7d952021-07-14 01:12:12 +000037
Hono Bot6cac68b2021-07-16 01:10:29 +000038 <script src="/hono/docs/js/jquery-3.3.1.min.js?1626397806"></script>
Hono Bot8fa7d952021-07-14 01:12:12 +000039
40 <style>
41 :root #header + #content > #left > #rlblock_left{
42 display:none !important;
43 }
44
45 :not(pre) > code + span.copy-to-clipboard {
46 display: none;
47 }
48
49 </style>
50
51<link rel="stylesheet" href="https://www.eclipse.org/eclipse.org-common/themes/solstice/public/stylesheets/vendor/cookieconsent/cookieconsent.min.css">
52
53
54<meta name="twitter:card" content="summary_large_image">
55<meta name="twitter:site" content="@EclipseHono">
56<meta name="twitter:title" content="CoAP Adapter Configuration :: Eclipse Hono&amp;trade; Vers.: 1.9">
57<meta name="twitter:image" content="https://www.eclipse.org/hono/docs/images/twitter_image.png">
58<meta name="twitter:description" content="A set of micro-services for connecting millions of devices.">
59
60
61<meta property="og:title" content="CoAP Adapter Configuration :: Eclipse Hono&amp;trade; Vers.: 1.9" />
62<meta property="og:type" content="website" />
63<meta property="og:url" content="https://www.eclipse.org/hono/docs/1.9/admin-guide/coap-adapter-config//" />
64<meta property="og:image" content="https://www.eclipse.org/hono/docs/images/twitter_image.png" />
65
66 </head>
67 <body class="" data-url="/hono/docs/1.9/admin-guide/coap-adapter-config/">
68 <nav id="sidebar" class="">
69
70
71
72 <div id="header-wrapper">
73 <div id="header">
74 <a href="https://www.eclipse.org/hono/">
75 <img src="/hono/docs/images/HONO-Logo_Bild-Wort_quer-w-310x120px.svg" alt="Hono logo" class="logo-img">
76</a>
77
78 </div>
79
80 <div class="searchbox">
81 <label for="search-by"><i class="fas fa-search"></i></label>
82 <input data-search-input id="search-by" type="search" placeholder="Search...">
83 <span data-search-clear=""><i class="fas fa-times"></i></span>
84</div>
85
Hono Bot6cac68b2021-07-16 01:10:29 +000086<script type="text/javascript" src="/hono/docs/js/lunr.min.js?1626397806"></script>
87<script type="text/javascript" src="/hono/docs/js/auto-complete.js?1626397806"></script>
Hono Bot8fa7d952021-07-14 01:12:12 +000088<script type="text/javascript">
89
90 var baseurl = "https:\/\/www.eclipse.org\/hono\/docs\/\/1.9";
91
92</script>
Hono Bot6cac68b2021-07-16 01:10:29 +000093<script type="text/javascript" src="/hono/docs/js/search.js?1626397806"></script>
Hono Bot8fa7d952021-07-14 01:12:12 +000094
95
96 </div>
97
98 <div class="highlightable">
99 <ul class="topics">
100
101
102
103
104
105
106
107
108
109
110
111 <li data-nav-id="/hono/docs/1.9/concepts/" title="Concepts" class="dd-item
112
113
114
115 ">
116 <a href="/hono/docs/1.9/concepts/">
117 <i class="far fa-lightbulb"></i> Concepts
118
119 </a>
120
121
122 <ul>
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138 <li data-nav-id="/hono/docs/1.9/concepts/device-identity/" title="Device Identity" class="dd-item ">
139 <a href="/hono/docs/1.9/concepts/device-identity/">
140 Device Identity
141
142 </a>
143 </li>
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159 <li data-nav-id="/hono/docs/1.9/concepts/tenancy/" title="Multi-Tenancy" class="dd-item ">
160 <a href="/hono/docs/1.9/concepts/tenancy/">
161 Multi-Tenancy
162
163 </a>
164 </li>
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180 <li data-nav-id="/hono/docs/1.9/concepts/device-provisioning/" title="Device Provisioning" class="dd-item ">
181 <a href="/hono/docs/1.9/concepts/device-provisioning/">
182 Device Provisioning
183
184 </a>
185 </li>
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201 <li data-nav-id="/hono/docs/1.9/concepts/connecting-devices/" title="Connecting Devices" class="dd-item ">
202 <a href="/hono/docs/1.9/concepts/connecting-devices/">
203 Connecting Devices
204
205 </a>
206 </li>
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222 <li data-nav-id="/hono/docs/1.9/concepts/device-notifications/" title="Device Notifications" class="dd-item ">
223 <a href="/hono/docs/1.9/concepts/device-notifications/">
224 Device Notifications
225
226 </a>
227 </li>
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243 <li data-nav-id="/hono/docs/1.9/concepts/command-and-control/" title="Command &amp; Control" class="dd-item ">
244 <a href="/hono/docs/1.9/concepts/command-and-control/">
245 Command &amp; Control
246
247 </a>
248 </li>
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264 <li data-nav-id="/hono/docs/1.9/concepts/resource-limits/" title="Resource limits" class="dd-item ">
265 <a href="/hono/docs/1.9/concepts/resource-limits/">
266 Resource limits
267
268 </a>
269 </li>
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285 <li data-nav-id="/hono/docs/1.9/concepts/connection-events/" title="Connection Events" class="dd-item ">
286 <a href="/hono/docs/1.9/concepts/connection-events/">
287 Connection Events
288
289 </a>
290 </li>
291
292
293
294
295
296
297
298 </ul>
299
300 </li>
301
302
303
304
305
306
307
308
309
310
311
312
313 <li data-nav-id="/hono/docs/1.9/user-guide/" title="User Guide" class="dd-item
314
315
316
317 ">
318 <a href="/hono/docs/1.9/user-guide/">
319 <i class="fas fa-book-reader"></i> User Guide
320
321 </a>
322
323
324 <ul>
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340 <li data-nav-id="/hono/docs/1.9/user-guide/mongodb-based-device-registry/" title="MongoDB Based Device Registry" class="dd-item ">
341 <a href="/hono/docs/1.9/user-guide/mongodb-based-device-registry/">
342 MongoDB Based Device Registry
343
344 </a>
345 </li>
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361 <li data-nav-id="/hono/docs/1.9/user-guide/jdbc-based-device-registry/" title="JDBC Based Device Registry" class="dd-item ">
362 <a href="/hono/docs/1.9/user-guide/jdbc-based-device-registry/">
363 JDBC Based Device Registry
364
365 </a>
366 </li>
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382 <li data-nav-id="/hono/docs/1.9/user-guide/file-based-device-registry/" title="File Based Device Registry" class="dd-item ">
383 <a href="/hono/docs/1.9/user-guide/file-based-device-registry/">
384 File Based Device Registry
385
386 </a>
387 </li>
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403 <li data-nav-id="/hono/docs/1.9/user-guide/http-adapter/" title="HTTP Adapter" class="dd-item ">
404 <a href="/hono/docs/1.9/user-guide/http-adapter/">
405 HTTP Adapter
406
407 </a>
408 </li>
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424 <li data-nav-id="/hono/docs/1.9/user-guide/mqtt-adapter/" title="MQTT Adapter" class="dd-item ">
425 <a href="/hono/docs/1.9/user-guide/mqtt-adapter/">
426 MQTT Adapter
427
428 </a>
429 </li>
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445 <li data-nav-id="/hono/docs/1.9/user-guide/amqp-adapter/" title="AMQP Adapter" class="dd-item ">
446 <a href="/hono/docs/1.9/user-guide/amqp-adapter/">
447 AMQP Adapter
448
449 </a>
450 </li>
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466 <li data-nav-id="/hono/docs/1.9/user-guide/coap-adapter/" title="CoAP Adapter" class="dd-item ">
467 <a href="/hono/docs/1.9/user-guide/coap-adapter/">
468 CoAP Adapter
469
470 </a>
471 </li>
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487 <li data-nav-id="/hono/docs/1.9/user-guide/kura-adapter/" title="Kura Adapter" class="dd-item ">
488 <a href="/hono/docs/1.9/user-guide/kura-adapter/">
489 Kura Adapter
490
491 </a>
492 </li>
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508 <li data-nav-id="/hono/docs/1.9/user-guide/sigfox-adapter/" title="Sigfox Adapter" class="dd-item ">
509 <a href="/hono/docs/1.9/user-guide/sigfox-adapter/">
510 Sigfox Adapter
511
512 </a>
513 </li>
514
515
516
517
518
519
520
521
522
523
524 </ul>
525
526 </li>
527
528
529
530
531
532
533
534
535
536
537
538
539 <li data-nav-id="/hono/docs/1.9/admin-guide/" title="Admin Guide" class="dd-item
540 parent
541
542
543 ">
544 <a href="/hono/docs/1.9/admin-guide/">
545 <i class="fas fa-sliders-h"></i> Admin Guide
546
547 </a>
548
549
550 <ul>
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566 <li data-nav-id="/hono/docs/1.9/admin-guide/common-config/" title="Common Configuration" class="dd-item ">
567 <a href="/hono/docs/1.9/admin-guide/common-config/">
568 Common Configuration
569
570 </a>
571 </li>
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587 <li data-nav-id="/hono/docs/1.9/admin-guide/auth-server-config/" title="Auth Server Configuration" class="dd-item ">
588 <a href="/hono/docs/1.9/admin-guide/auth-server-config/">
589 Auth Server Configuration
590
591 </a>
592 </li>
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608 <li data-nav-id="/hono/docs/1.9/admin-guide/mongodb-device-registry-config/" title="MongoDB Based Device Registry Configuration" class="dd-item ">
609 <a href="/hono/docs/1.9/admin-guide/mongodb-device-registry-config/">
610 MongoDB Based Device Registry Configuration
611
612 </a>
613 </li>
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629 <li data-nav-id="/hono/docs/1.9/admin-guide/jdbc-device-registry-config/" title="JDBC Based Device Registry Configuration" class="dd-item ">
630 <a href="/hono/docs/1.9/admin-guide/jdbc-device-registry-config/">
631 JDBC Based Device Registry Configuration
632
633 </a>
634 </li>
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650 <li data-nav-id="/hono/docs/1.9/admin-guide/file-based-device-registry-config/" title="File Based Device Registry Configuration" class="dd-item ">
651 <a href="/hono/docs/1.9/admin-guide/file-based-device-registry-config/">
652 File Based Device Registry Configuration
653
654 </a>
655 </li>
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671 <li data-nav-id="/hono/docs/1.9/admin-guide/command-router-config/" title="Configuring the Command Router Service" class="dd-item ">
672 <a href="/hono/docs/1.9/admin-guide/command-router-config/">
673 Command Router Service Configuration
674
675 </a>
676 </li>
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692 <li data-nav-id="/hono/docs/1.9/admin-guide/device-connection-config/" title="Configuring the Device Connection Service" class="dd-item ">
693 <a href="/hono/docs/1.9/admin-guide/device-connection-config/">
694 Device Connection Service Configuration
695
696 </a>
697 </li>
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713 <li data-nav-id="/hono/docs/1.9/admin-guide/http-adapter-config/" title="HTTP Adapter Configuration" class="dd-item ">
714 <a href="/hono/docs/1.9/admin-guide/http-adapter-config/">
715 HTTP Adapter Configuration
716
717 </a>
718 </li>
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734 <li data-nav-id="/hono/docs/1.9/admin-guide/mqtt-adapter-config/" title="MQTT Adapter Configuration" class="dd-item ">
735 <a href="/hono/docs/1.9/admin-guide/mqtt-adapter-config/">
736 MQTT Adapter Configuration
737
738 </a>
739 </li>
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755 <li data-nav-id="/hono/docs/1.9/admin-guide/amqp-adapter-config/" title="AMQP Adapter Configuration" class="dd-item ">
756 <a href="/hono/docs/1.9/admin-guide/amqp-adapter-config/">
757 AMQP Adapter Configuration
758
759 </a>
760 </li>
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776 <li data-nav-id="/hono/docs/1.9/admin-guide/coap-adapter-config/" title="CoAP Adapter Configuration" class="dd-item active">
777 <a href="/hono/docs/1.9/admin-guide/coap-adapter-config/">
778 CoAP Adapter Configuration
779
780 </a>
781 </li>
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797 <li data-nav-id="/hono/docs/1.9/admin-guide/kura-adapter-config/" title="Kura Adapter Configuration" class="dd-item ">
798 <a href="/hono/docs/1.9/admin-guide/kura-adapter-config/">
799 Kura Adapter Configuration
800
801 </a>
802 </li>
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818 <li data-nav-id="/hono/docs/1.9/admin-guide/hono-client-configuration/" title="Hono Client Configuration" class="dd-item ">
819 <a href="/hono/docs/1.9/admin-guide/hono-client-configuration/">
820 Hono Client Configuration
821
822 </a>
823 </li>
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839 <li data-nav-id="/hono/docs/1.9/admin-guide/hono-kafka-client-configuration/" title="Hono Kafka Client Configuration" class="dd-item ">
840 <a href="/hono/docs/1.9/admin-guide/hono-kafka-client-configuration/">
841 Hono Kafka Client Configuration
842
843 </a>
844 </li>
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860 <li data-nav-id="/hono/docs/1.9/admin-guide/amqp-network-config/" title="AMQP 1.0 Messaging Network Configuration" class="dd-item ">
861 <a href="/hono/docs/1.9/admin-guide/amqp-network-config/">
862 AMQP 1.0 Messaging Network Configuration
863
864 </a>
865 </li>
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881 <li data-nav-id="/hono/docs/1.9/admin-guide/secure_communication/" title="Secure Communication" class="dd-item ">
882 <a href="/hono/docs/1.9/admin-guide/secure_communication/">
883 Secure Communication
884
885 </a>
886 </li>
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902 <li data-nav-id="/hono/docs/1.9/admin-guide/monitoring-tracing-config/" title="Monitoring &amp; Tracing" class="dd-item ">
903 <a href="/hono/docs/1.9/admin-guide/monitoring-tracing-config/">
904 Monitoring &amp; Tracing
905
906 </a>
907 </li>
908
909
910
911
912
913
914
915
916
917
918 </ul>
919
920 </li>
921
922
923
924
925
926
927
928
929
930
931
932
933 <li data-nav-id="/hono/docs/1.9/dev-guide/" title="Developer Guide" class="dd-item
934
935
936
937 ">
938 <a href="/hono/docs/1.9/dev-guide/">
939 <i class="fas fa-tools"></i> Developer Guide
940
941 </a>
942
943
944 <ul>
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960 <li data-nav-id="/hono/docs/1.9/dev-guide/building_hono/" title="Building from Source" class="dd-item ">
961 <a href="/hono/docs/1.9/dev-guide/building_hono/">
962 Building from Source
963
964 </a>
965 </li>
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981 <li data-nav-id="/hono/docs/1.9/dev-guide/amqp_adapter_client/" title="AMQP Adapter Client for Java" class="dd-item ">
982 <a href="/hono/docs/1.9/dev-guide/amqp_adapter_client/">
983 AMQP Adapter Client for Java
984
985 </a>
986 </li>
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002 <li data-nav-id="/hono/docs/1.9/dev-guide/java_client_consumer/" title="Consuming Messages from Java" class="dd-item ">
1003 <a href="/hono/docs/1.9/dev-guide/java_client_consumer/">
1004 Consuming Messages from Java
1005
1006 </a>
1007 </li>
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023 <li data-nav-id="/hono/docs/1.9/dev-guide/custom_http_adapter/" title="Implement a Custom Hono HTTP Protocol Adapter" class="dd-item ">
1024 <a href="/hono/docs/1.9/dev-guide/custom_http_adapter/">
1025 Implement a Custom Hono HTTP Protocol Adapter
1026
1027 </a>
1028 </li>
1029
1030
1031
1032
1033
1034
1035
1036 </ul>
1037
1038 </li>
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051 <li data-nav-id="/hono/docs/1.9/api/" title="API" class="dd-item
1052
1053
1054
1055 ">
1056 <a href="/hono/docs/1.9/api/">
1057 &nbsp;<i class='fas fa-plug'></i>&nbsp;API
1058
1059 </a>
1060
1061
1062 <ul>
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078 <li data-nav-id="/hono/docs/1.9/api/telemetry/" title="Telemetry API Specification" class="dd-item ">
1079 <a href="/hono/docs/1.9/api/telemetry/">
1080 Telemetry API
1081
1082 </a>
1083 </li>
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099 <li data-nav-id="/hono/docs/1.9/api/event/" title="Event API Specification" class="dd-item ">
1100 <a href="/hono/docs/1.9/api/event/">
1101 Event API
1102
1103 </a>
1104 </li>
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120 <li data-nav-id="/hono/docs/1.9/api/command-and-control/" title="Command &amp; Control API Specification" class="dd-item ">
1121 <a href="/hono/docs/1.9/api/command-and-control/">
1122 Command &amp; Control API
1123
1124 </a>
1125 </li>
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141 <li data-nav-id="/hono/docs/1.9/api/kafka-api/" title="Kafka-based APIs" class="dd-item ">
1142 <a href="/hono/docs/1.9/api/kafka-api/">
1143 Kafka-based APIs
1144
1145 </a>
1146 </li>
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162 <li data-nav-id="/hono/docs/1.9/api/telemetry-kafka/" title="Telemetry API for Kafka Specification" class="dd-item ">
1163 <a href="/hono/docs/1.9/api/telemetry-kafka/">
1164 Telemetry API for Kafka
1165
1166 </a>
1167 </li>
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183 <li data-nav-id="/hono/docs/1.9/api/event-kafka/" title="Event API for Kafka Specification" class="dd-item ">
1184 <a href="/hono/docs/1.9/api/event-kafka/">
1185 Event API for Kafka
1186
1187 </a>
1188 </li>
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204 <li data-nav-id="/hono/docs/1.9/api/command-and-control-kafka/" title="Command &amp; Control API for Kafka Specification" class="dd-item ">
1205 <a href="/hono/docs/1.9/api/command-and-control-kafka/">
1206 Command &amp; Control API for Kafka
1207
1208 </a>
1209 </li>
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225 <li data-nav-id="/hono/docs/1.9/api/tenant/" title="Tenant API Specification" class="dd-item ">
1226 <a href="/hono/docs/1.9/api/tenant/">
1227 Tenant API
1228
1229 </a>
1230 </li>
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246 <li data-nav-id="/hono/docs/1.9/api/command-router/" title="Command Router API Specification" class="dd-item ">
1247 <a href="/hono/docs/1.9/api/command-router/">
1248 Command Router API
1249
1250 </a>
1251 </li>
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267 <li data-nav-id="/hono/docs/1.9/api/device-connection/" title="Device Connection API Specification" class="dd-item ">
1268 <a href="/hono/docs/1.9/api/device-connection/">
1269 Device Connection API
1270
1271 </a>
1272 </li>
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288 <li data-nav-id="/hono/docs/1.9/api/device-registration/" title="Device Registration API Specification" class="dd-item ">
1289 <a href="/hono/docs/1.9/api/device-registration/">
1290 Device Registration API
1291
1292 </a>
1293 </li>
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309 <li data-nav-id="/hono/docs/1.9/api/credentials/" title="Credentials API Specification" class="dd-item ">
1310 <a href="/hono/docs/1.9/api/credentials/">
1311 Credentials API
1312
1313 </a>
1314 </li>
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330 <li data-nav-id="/hono/docs/1.9/api/authentication/" title="Authentication API Specification" class="dd-item ">
1331 <a href="/hono/docs/1.9/api/authentication/">
1332 Authentication API
1333
1334 </a>
1335 </li>
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351 <li data-nav-id="/hono/docs/1.9/api/management/" title="Device Registry Management API Specification" class="dd-item ">
1352 <a href="/hono/docs/1.9/api/management/">
1353 Device Registry Management API
1354
1355 </a>
1356 </li>
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372 <li data-nav-id="/hono/docs/1.9/api/metrics/" title="Metrics" class="dd-item ">
1373 <a href="/hono/docs/1.9/api/metrics/">
1374 Metrics
1375
1376 </a>
1377 </li>
1378
1379
1380
1381
1382
1383
1384
1385 </ul>
1386
1387 </li>
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400 <li data-nav-id="/hono/docs/1.9/deployment/" title="Deployment" class="dd-item
1401
1402
1403
1404 ">
1405 <a href="/hono/docs/1.9/deployment/">
1406 <i class="fas fa-shipping-fast"></i> Deployment
1407
1408 </a>
1409
1410
1411 <ul>
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427 <li data-nav-id="/hono/docs/1.9/deployment/helm-based-deployment/" title="Helm based Deployment" class="dd-item ">
1428 <a href="/hono/docs/1.9/deployment/helm-based-deployment/">
1429 Helm based Deployment
1430
1431 </a>
1432 </li>
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448 <li data-nav-id="/hono/docs/1.9/deployment/openshift/" title="OpenShift / OKD" class="dd-item ">
1449 <a href="/hono/docs/1.9/deployment/openshift/">
1450 OpenShift / OKD
1451
1452 </a>
1453 </li>
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469 <li data-nav-id="/hono/docs/1.9/deployment/create-kubernetes-cluster/" title="Setting up a Kubernetes Cluster" class="dd-item ">
1470 <a href="/hono/docs/1.9/deployment/create-kubernetes-cluster/">
1471 Setting up a Kubernetes Cluster
1472
1473 </a>
1474 </li>
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490 <li data-nav-id="/hono/docs/1.9/deployment/resource-limitation/" title="Limiting Resource Usage" class="dd-item ">
1491 <a href="/hono/docs/1.9/deployment/resource-limitation/">
1492 Limiting Resource Usage
1493
1494 </a>
1495 </li>
1496
1497
1498
1499
1500
1501
1502
1503 </ul>
1504
1505 </li>
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518 <li data-nav-id="/hono/docs/1.9/architecture/" title="Architecture" class="dd-item
1519
1520
1521
1522 ">
1523 <a href="/hono/docs/1.9/architecture/">
1524 <i class="fas fa-landmark"></i> Architecture
1525
1526 </a>
1527
1528
1529 <ul>
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545 <li data-nav-id="/hono/docs/1.9/architecture/component-view/" title="Component View" class="dd-item ">
1546 <a href="/hono/docs/1.9/architecture/component-view/">
1547 Component View
1548
1549 </a>
1550 </li>
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566 <li data-nav-id="/hono/docs/1.9/architecture/auth/" title="Authentication/Authorization" class="dd-item ">
1567 <a href="/hono/docs/1.9/architecture/auth/">
1568 Authentication/Authorization
1569
1570 </a>
1571 </li>
1572
1573
1574
1575
1576
1577
1578
1579 </ul>
1580
1581 </li>
1582
1583
1584
1585
1586
1587 </ul>
1588
1589
1590
1591 <section id="shortcuts">
1592 <h3></h3>
1593 <ul>
1594
1595 <li>
1596 <a class="padding" href="https://www.eclipse.org/hono/" title="Hono&#39;s Homepage"><i class='fas fa-home'></i> Hono Home</a>
1597 </li>
1598
1599 <li>
1600 <a class="padding" href="https://www.eclipse.org/hono/getting-started/" title="Getting started with Eclipse Hono"><i class='fas fa-plane-departure'></i> Getting Started</a>
1601 </li>
1602
1603 </ul>
1604 </section>
1605
1606
1607
1608 <section id="prefooter">
1609 <hr/>
1610 <ul>
1611
1612 <li>
1613 <div id="select-box-wrapper">
1614 <div id="select-box">
1615 <a class="padding">
1616 Version:&nbsp;
1617 <div class="select-style">
1618 <select id="select-language" onchange="location = this.value;">
1619
1620
1621
1622
1623
1624
1625
1626
1627 <option id="stable" value="https://www.eclipse.org/hono/docs/admin-guide/coap-adapter-config/">stable (1.9)</option>
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661 <option id="1.9" value="https://www.eclipse.org/hono/docs/1.9/admin-guide/coap-adapter-config/" selected>1.9</option>
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695 <option id="1.8" value="https://www.eclipse.org/hono/docs/1.8/admin-guide/coap-adapter-config/">1.8</option>
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729 <option id="1.7" value="https://www.eclipse.org/hono/docs/1.7/admin-guide/coap-adapter-config/">1.7</option>
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763 <option id="1.6" value="https://www.eclipse.org/hono/docs/1.6/admin-guide/coap-adapter-config/">1.6</option>
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797 <option id="1.5" value="https://www.eclipse.org/hono/docs/1.5/admin-guide/coap-adapter-config/">1.5</option>
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 <option id="1.4" value="https://www.eclipse.org/hono/docs/1.4/admin-guide/coap-adapter-config/">1.4</option>
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865 <option id="1.3" value="https://www.eclipse.org/hono/docs/1.3/admin-guide/coap-adapter-config/">1.3</option>
1866
1867
1868
1869
1870
1871
1872
1873
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 <option id="dev" value="https://www.eclipse.org/hono/docs/dev/admin-guide/coap-adapter-config/">dev</option>
1906
1907
1908
1909
1910 </select>
1911 <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
1912 width="255px" height="255px" viewBox="0 0 255 255" style="enable-background:new 0 0 255 255;" xml:space="preserve">
1913 <g>
1914 <g id="arrow-drop-down">
1915 <polygon points="0,63.75 127.5,191.25 255,63.75 " />
1916 </g>
1917 </g>
1918 </svg>
1919 </div>
1920 </a>
1921 </div>
1922 </div>
1923 </li>
1924
1925
1926
1927 </ul>
1928 </section>
1929
1930 <section id="footer">
1931
1932
1933<p>&copy; 2021 <a href="https://www.eclipse.org/hono/">The Eclipse Hono Project</a></p>
1934
1935<p>
1936 Documentation built with
1937 <a href="https://gohugo.io/" target="_blank">Hugo</a>
1938 using the
1939 <a href="https://github.com/matcornic/hugo-theme-learn" target="_blank">Learn</a> theme.
1940</p>
1941
1942<div class="eclipse-logo">
1943 <a href="https://www.eclipse.org" target="_blank">
1944 <img src="https://www.eclipse.org/hono/docs/images/eclipse_foundation_logo.svg"/>
1945 </a>
1946</div>
1947
1948 </section>
1949 </div>
1950</nav>
1951
1952
1953
1954
1955 <section id="body">
1956 <div id="overlay"></div>
1957
1958
1959
1960
1961 <div class="padding highlightable">
1962
1963 <div>
1964 <div id="top-bar">
1965
1966
1967
1968
1969 <div id="top-github-link">
1970 <a class="github-link" title='Edit this page' href="https://github.com/eclipse/hono/edit/master/site/documentation/content/admin-guide/coap-adapter-config.md" target="blank">
1971 <i class="fas fa-code-branch"></i>
1972 <span id="top-github-link-text">Edit this page</span>
1973 </a>
1974 </div>
1975
1976
1977
1978 <div id="breadcrumbs" itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb">
1979 <span id="sidebar-toggle-span">
1980 <a href="#" id="sidebar-toggle" data-sidebar-toggle="">
1981 <i class="fas fa-bars"></i>
1982 </a>
1983 </span>
1984
1985 <span id="toc-menu"><i class="fas fa-list-alt"></i></span>
1986
1987 <span class="links">
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001 <a href='/hono/docs/1.9/'>Documentation</a> > <a href='/hono/docs/1.9/admin-guide/'>Admin Guide</a> > CoAP Adapter Configuration
2002
2003
2004
2005
2006
2007
2008
2009 </span>
2010 </div>
2011
2012 <div class="progress">
2013 <div class="wrapper">
2014<nav id="TableOfContents">
2015 <ul>
2016 <li><a href="#service-configuration">Service Configuration</a></li>
2017 <li><a href="#port-configuration">Port Configuration</a>
2018 <ul>
2019 <li><a href="#secure-port-only">Secure Port Only</a></li>
2020 <li><a href="#insecure-port-only">Insecure Port Only</a></li>
2021 <li><a href="#dual-port">Dual Port</a></li>
2022 <li><a href="#ephemeral-ports">Ephemeral Ports</a></li>
2023 </ul>
2024 </li>
2025 <li><a href="#authentication">Authentication</a></li>
2026 </ul>
2027</nav>
2028 </div>
2029</div>
2030
2031
2032 </div>
2033 </div>
2034
2035 <div id="head-tags">
2036
2037 </div>
2038
2039 <div id="body-inner">
2040
2041 <h1>
2042
2043 CoAP Adapter Configuration
2044 </h1>
2045
2046
2047
2048
2049
2050<p>The CoAP protocol adapter exposes CoAP based endpoints for Eclipse Honoâ„¢&rsquo;s south bound Telemetry, Event and Command &amp; Control APIs.</p>
2051<p>The adapter is implemented as a Spring Boot application using <a href="https://www.eclipse.org/californium/">Eclipse Californiumâ„¢</a> for implementing
2052the CoAP protocol handling. It can be run either directly from the command line or by means of starting the corresponding
2053<a href="https://hub.docker.com/r/eclipse/hono-adapter-coap-vertx/">Docker image</a> created from it.</p>
2054<p>The adapter supports the following standard configuration options:</p>
2055<ul>
2056<li><a href="/hono/docs/1.9/admin-guide/common-config/#java-vm-options">Common Java VM Options</a></li>
2057<li><a href="/hono/docs/1.9/admin-guide/common-config/#vertx-options">Common vert.x Options</a></li>
2058<li><a href="/hono/docs/1.9/admin-guide/common-config/#protocol-adapter-options">Common Protocol Adapter Options</a></li>
2059<li><a href="/hono/docs/1.9/admin-guide/monitoring-tracing-config/">Monitoring Options</a></li>
2060</ul>
2061<h2 id="service-configuration">Service Configuration</h2>
2062<p>The following table provides an overview of the configuration variables and corresponding command line options for configuring the CoAP adapter.</p>
2063<table>
2064<thead>
2065<tr>
2066<th style="text-align:left">Environment Variable<br>Command Line Option</th>
2067<th style="text-align:center">Mandatory</th>
2068<th style="text-align:left">Default</th>
2069<th style="text-align:left">Description</th>
2070</tr>
2071</thead>
2072<tbody>
2073<tr>
2074<td style="text-align:left"><code>HONO_APP_MAX_INSTANCES</code><br><code>--hono.app.maxInstances</code></td>
2075<td style="text-align:center">no</td>
2076<td style="text-align:left"><em>#CPU cores</em></td>
2077<td style="text-align:left">The number of verticle instances to deploy. If not set, one verticle per processor core is deployed.</td>
2078</tr>
2079<tr>
2080<td style="text-align:left"><code>HONO_COAP_AUTHENTICATION_REQUIRED</code><br><code>--hono.coap.authenticationRequired</code></td>
2081<td style="text-align:center">no</td>
2082<td style="text-align:left"><code>true</code></td>
2083<td style="text-align:left">If set to <code>true</code> the protocol adapter requires devices to authenticate when connecting to the adapter. The credentials provided by the device are verified using the configured <a href="/hono/docs/1.9/admin-guide/common-config/#credentials-service-connection-configuration">Credentials Service</a>. Devices that fail to authenticate are not allowed to connect to the adapter.</td>
2084</tr>
2085<tr>
2086<td style="text-align:left"><code>HONO_COAP_BIND_ADDRESS</code><br><code>--hono.coap.bindAddress</code></td>
2087<td style="text-align:center">no</td>
2088<td style="text-align:left"><code>127.0.0.1</code></td>
2089<td style="text-align:left">The IP address of the network interface that the secure port should be bound to.<br>See <a href="#port-configuration">Port Configuration</a> below for details.</td>
2090</tr>
2091<tr>
2092<td style="text-align:left"><code>HONO_COAP_CERT_PATH</code><br><code>--hono.coap.certPath</code></td>
2093<td style="text-align:center">no</td>
2094<td style="text-align:left">-</td>
2095<td style="text-align:left">The absolute path to the PEM file containing the certificate that the protocol adapter should use for authenticating to clients. This option must be used in conjunction with <code>HONO_COAP_KEY_PATH</code>.<br>Alternatively, the <code>HONO_COAP_KEY_STORE_PATH</code> option can be used to configure a key store containing both the key as well as the certificate. Note that the CoAP adapter supports ECDSA based keys only.</td>
2096</tr>
2097<tr>
2098<td style="text-align:left"><code>HONO_COAP_COAP_THREADS</code><br><code>--hono.coap.coapThreads</code></td>
2099<td style="text-align:center">no</td>
2100<td style="text-align:left">2</td>
2101<td style="text-align:left">The number of threads to use for processing CoAP message exchanges at the protocol layer.</td>
2102</tr>
2103<tr>
2104<td style="text-align:left"><code>HONO_COAP_CONNECTOR_THREADS</code><br><code>--hono.coap.connectorThreads</code></td>
2105<td style="text-align:center">no</td>
2106<td style="text-align:left">2</td>
2107<td style="text-align:left">The number of threads to use for receiving/sending UDP packets. The connector will start the given number of threads for each direction, outbound (sending) as well as inbound (receiving).</td>
2108</tr>
2109<tr>
2110<td style="text-align:left"><code>HONO_COAP_DTLS_THREADS</code><br><code>--hono.coap.dtlsThreads</code></td>
2111<td style="text-align:center">no</td>
2112<td style="text-align:left">32</td>
2113<td style="text-align:left">The number of threads to use for processing DTLS message exchanges at the connection layer.</td>
2114</tr>
2115<tr>
2116<td style="text-align:left"><code>HONO_COAP_DTLS_RETRANSMISSION_TIMEOUT</code><br><code>--hono.coap.dtlsRetransmissionTimeout</code></td>
2117<td style="text-align:center">no</td>
2118<td style="text-align:left">2000</td>
2119<td style="text-align:left">The timeout in milliseconds for DTLS retransmissions.</td>
2120</tr>
2121<tr>
2122<td style="text-align:left"><code>HONO_COAP_DEFAULTS_ENABLED</code><br><code>--hono.coap.defaultsEnabled</code></td>
2123<td style="text-align:center">no</td>
2124<td style="text-align:left"><code>true</code></td>
2125<td style="text-align:left">If set to <code>true</code> the protocol adapter uses <em>default values</em> registered for a device to augment messages published by the device with missing information like a content type. In particular, the protocol adapter adds default values registered for the device as (application) properties with the same name to the AMQP 1.0 messages it sends downstream to the AMQP Messaging Network.</td>
2126</tr>
2127<tr>
2128<td style="text-align:left"><code>HONO_COAP_EXCHANGE_LIFETIME</code><br><code>--hono.coap.exchangeLifetime</code></td>
2129<td style="text-align:center">no</td>
2130<td style="text-align:left">247000</td>
2131<td style="text-align:left">The exchange lifetime in milliseconds. According RFC 7252, that value is 247s. Such a large time requires also a huge amount of heap. That time includes a processing time of 100s and retransmissions of CON messages. Therefore a practical value could be much smaller.</td>
2132</tr>
2133<tr>
2134<td style="text-align:left"><code>HONO_COAP_INSECURE_NETWORK_CONFIG</code><br><code>--hono.coap.insecureNetworkConfig</code></td>
2135<td style="text-align:center">no</td>
2136<td style="text-align:left">-</td>
2137<td style="text-align:left">The absolute path to a Californium properties file containing network configuration properties that should be used for the insecure CoAP port. If not set, Californium&rsquo;s default properties will be used.</td>
2138</tr>
2139<tr>
2140<td style="text-align:left"><code>HONO_COAP_INSECURE_PORT</code><br><code>--hono.coap.insecurePort</code></td>
2141<td style="text-align:center">no</td>
2142<td style="text-align:left">-</td>
2143<td style="text-align:left">The insecure port the protocol adapter should listen on.<br>See <a href="#port-configuration">Port Configuration</a> below for details.</td>
2144</tr>
2145<tr>
2146<td style="text-align:left"><code>HONO_COAP_INSECURE_PORT_BIND_ADDRESS</code><br><code>--hono.coap.insecurePortBindAddress</code></td>
2147<td style="text-align:center">no</td>
2148<td style="text-align:left"><code>127.0.0.1</code></td>
2149<td style="text-align:left">The IP address of the network interface that the insecure port should be bound to.<br>See <a href="#port-configuration">Port Configuration</a> below for details.</td>
2150</tr>
2151<tr>
2152<td style="text-align:left"><code>HONO_COAP_INSECURE_PORT_ENABLED</code><br><code>--hono.coap.insecurePortEnabled</code></td>
2153<td style="text-align:center">no</td>
2154<td style="text-align:left"><code>false</code></td>
2155<td style="text-align:left">If set to <code>true</code> the protocol adapter will open an insecure port (not secured by TLS) using either the port number set via <code>HONO_COAP_INSECURE_PORT</code> or the default port number (<code>5683</code>) if not set explicitly.<br>See <a href="#port-configuration">Port Configuration</a> below for details.</td>
2156</tr>
2157<tr>
2158<td style="text-align:left"><code>HONO_COAP_KEY_PATH</code><br><code>--hono.coap.keyPath</code></td>
2159<td style="text-align:center">no</td>
2160<td style="text-align:left">-</td>
2161<td style="text-align:left">The absolute path to the (PKCS8) PEM file containing the private key that the protocol adapter should use for authenticating to clients. This option must be used in conjunction with <code>HONO_COAP_CERT_PATH</code>. Alternatively, the <code>HONO_COAP_KEY_STORE_PATH</code> option can be used to configure a key store containing both the key as well as the certificate. Note that the CoAP adapter supports ECDSA based keys only.</td>
2162</tr>
2163<tr>
2164<td style="text-align:left"><code>HONO_COAP_KEY_STORE_PASSWORD</code><br><code>--hono.coap.keyStorePassword</code></td>
2165<td style="text-align:center">no</td>
2166<td style="text-align:left">-</td>
2167<td style="text-align:left">The password required to read the contents of the key store.</td>
2168</tr>
2169<tr>
2170<td style="text-align:left"><code>HONO_COAP_KEY_STORE_PATH</code><br><code>--hono.coap.keyStorePath</code></td>
2171<td style="text-align:center">no</td>
2172<td style="text-align:left">-</td>
2173<td style="text-align:left">The absolute path to the Java key store containing the private key and certificate that the protocol adapter should use for authenticating to clients. Either this option or the <code>HONO_COAP_KEY_PATH</code> and <code>HONO_COAP_CERT_PATH</code> options need to be set in order to enable TLS secured connections with clients. The key store format can be either <code>JKS</code> or <code>PKCS12</code> indicated by a <code>.jks</code> or <code>.p12</code> file suffix respectively. Note that the CoAP adapter supports ECDSA based keys only.</td>
2174</tr>
2175<tr>
2176<td style="text-align:left"><code>HONO_COAP_MAX_CONNECTIONS</code><br><code>--hono.coap.maxConnections</code></td>
2177<td style="text-align:center">no</td>
2178<td style="text-align:left"><code>0</code></td>
2179<td style="text-align:left">The maximum number of concurrent DTLS connections that the protocol adapter should accept. If set to <code>0</code>, the protocol adapter determines a reasonable value based on the available resources like memory and CPU.</td>
2180</tr>
2181<tr>
2182<td style="text-align:left"><code>HONO_COAP_MAX_PAYLOAD_SIZE</code><br><code>--hono.coap.maxPayloadSize</code></td>
2183<td style="text-align:center">no</td>
2184<td style="text-align:left"><code>2048</code></td>
2185<td style="text-align:left">The maximum allowed size of an incoming CoAP request&rsquo;s body in bytes. Requests with a larger body size are rejected with a 4.13 <code>Request entity too large</code> response.</td>
2186</tr>
2187<tr>
2188<td style="text-align:left"><code>HONO_COAP_MESSAGE_OFFLOADING_ENABLED</code><br><code>--hono.coap.messageOffloadingEnabled</code></td>
2189<td style="text-align:center">no</td>
2190<td style="text-align:left">true</td>
2191<td style="text-align:left">Enables to clear payload and serialized messages kept for deduplication in order to reduce the heap consumption. Experimental.</td>
2192</tr>
2193<tr>
2194<td style="text-align:left"><code>HONO_COAP_NETWORK_CONFIG</code><br><code>--hono.coap.networkConfig</code></td>
2195<td style="text-align:center">no</td>
2196<td style="text-align:left">-</td>
2197<td style="text-align:left">The absolute path to a Californium properties file containing network configuration properties that should be used for the secure CoAP port. If not set, Californium&rsquo;s default properties will be used.</td>
2198</tr>
2199<tr>
2200<td style="text-align:left"><code>HONO_COAP_PORT</code><br><code>--hono.coap.port</code></td>
2201<td style="text-align:center">no</td>
2202<td style="text-align:left">-</td>
2203<td style="text-align:left">The secure port that the protocol adapter should listen on.<br>See <a href="#port-configuration">Port Configuration</a> below for details.</td>
2204</tr>
2205<tr>
2206<td style="text-align:left"><code>HONO_COAP_TENANT_IDLE_TIMEOUT</code><br><code>--hono.coap.tenantIdleTimeout</code></td>
2207<td style="text-align:center">no</td>
2208<td style="text-align:left"><code>0ms</code></td>
2209<td style="text-align:left">The duration after which the protocol adapter removes local state of the tenant (e.g. open AMQP links) with an amount and a unit, e.g. <code>2h</code> for 2 hours. See the <a href="https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-external-config-conversion-duration">Spring Boot documentation</a> for an explanation of the format. The value <code>0ms</code> disables the timeout.</td>
2210</tr>
2211<tr>
2212<td style="text-align:left"><code>HONO_COAP_TIMEOUT_TO_ACK</code><br><code>--hono.coap.timeoutToAck</code></td>
2213<td style="text-align:center">no</td>
2214<td style="text-align:left">500</td>
2215<td style="text-align:left">Timeout in milliseconds to send an ACK for a CoAP CON request. If the response is available before that timeout, a more efficient piggybacked response is used. If the timeout is reached without having received a response, an empty ACK is sent back to the client and the response is sent in a separate CON once it becomes available. Special values: <code>-1</code> means to always piggyback the response in an ACK and never send a separate CON; <code>0</code> means to always send an ACK immediately and include the response in a separate CON.</td>
2216</tr>
2217</tbody>
2218</table>
2219<p>The variables only need to be set if the default value needs to be changed.</p>
2220<h2 id="port-configuration">Port Configuration</h2>
2221<p>The CoAP protocol adapter can be configured to listen for connections on</p>
2222<ul>
2223<li>a secure port only (default) or</li>
2224<li>an insecure port only or</li>
2225<li>both a secure and an insecure port (dual port configuration)</li>
2226</ul>
2227<p>The CoAP protocol adapter will fail to start if none of the ports is configured properly.</p>
2228<h3 id="secure-port-only">Secure Port Only</h3>
2229<p>The protocol adapter opens a DTLS secured port if any of the following criteria are met</p>
2230<ul>
2231<li>The <code>HONO_COAP_KEY_STORE_PATH</code> and <code>HONO_COAP_KEY_STORE_PASSWORD</code> environment variables are set in order to load a key and certificate from a password protected key store or</li>
2232<li>the <code>HONO_COAP_KEY_PATH</code> and <code>HONO_COAP_CERT_PATH</code> environment variables are set in order to load a key and certificate from two separate PEM files in PKCS8 format or</li>
2233<li>the <code>HONO_COAP_PORT</code> environment variable is set to a valid port number.</li>
2234</ul>
2235<p>When starting up, the protocol adapter will bind a DTLS secured UDP socket to the configured port. If the port is not set explicitly, the default CoAP secure port 5684 is used.</p>
2236<p>The <code>HONO_COAP_BIND_ADDRESS</code> variable can be used to specify the network interface that the port should be exposed on. By default the port is bound to the <em>loopback device</em> only,
2237i.e. the port will only be accessible from the local host. Setting this variable to <code>0.0.0.0</code> will let the port being bound to <strong>all</strong> network interfaces (be careful not to expose
2238the port unintentionally to the outside world).</p>
2239<h3 id="insecure-port-only">Insecure Port Only</h3>
2240<p>The secure port will mostly be required for production scenarios. However, it might be desirable to expose a non-DTLS secured port instead, e.g. for testing purposes.
2241In any case, the non-secure port needs to be explicitly enabled by</p>
2242<ul>
2243<li>explicitly setting <code>HONO_COAP_AUTHENTICATION_REQUIRED</code> to <code>false</code> and either
2244<ul>
2245<li>explicitly setting <code>HONO_COAP_INSECURE_PORT</code> to a valid port number or</li>
2246<li>implicitly configuring the default insecure CoAP port (5683) by setting <code>HONO_COAP_INSECURE_PORT_ENABLED</code> to <code>true</code>.</li>
2247</ul>
2248</li>
2249</ul>
2250<p>The protocol adapter issues a warning on the console if <code>HONO_COAP_INSECURE_PORT</code> is set to the default secure CoAP port (5684).</p>
2251<p>The <code>HONO_COAP_INSECURE_PORT_BIND_ADDRESS</code> variable can be used to specify the network interface that the port should be exposed on. By default the port is bound to the <em>loopback device</em> only,
2252i.e. the port will only be accessible from the local host. This variable might be used to e.g. expose the non-DTLS secured port on a local interface only, thus providing easy access from within
2253the local network, while still requiring encrypted communication when accessed from the outside over public network infrastructure.</p>
2254<p>Setting this variable to <code>0.0.0.0</code> will let the port being bound to <strong>all</strong> network interfaces (be careful not to expose the port unintentionally to the outside world).</p>
2255<div class="alert alert-notice">
2256 <h4 class="alert-heading"><i class="fas fa-info-circle"></i> Note</h4>
2257 <div>The insecure port will only be bound if the <code>HONO_COAP_AUTHENTICATION_REQUIRED</code> variable is set to <code>false</code> because CoAP authenticates clients (devices) as
2258part of the DTLS handshake. Thus, requiring devices to authenticate effectively rules out setting up a non-DTLS secured port.</div>
2259</div>
2260<h3 id="dual-port">Dual Port</h3>
2261<p>The protocol adapter may be configured to open both a secure and a non-secure port at the same time simply by
2262configuring both ports as described above. For this to work, both ports must be configured to use different port numbers,
2263otherwise startup will fail.</p>
2264<h3 id="ephemeral-ports">Ephemeral Ports</h3>
2265<p>Both the secure as well as the insecure port numbers may be explicitly set to <code>0</code>. The protocol adapter will then use
2266arbitrary (unused) port numbers determined by the operating system during startup.</p>
2267<h2 id="authentication">Authentication</h2>
2268<p>The CoAP protocol is UDP based and as such uses the DTLS protocol to secure the communication between a client (device)
2269and a server (adapter). The CoAP adapter also uses the DTLS handshake to prove its identity to devices and to authenticate
2270the devices themselves. The DTLS protocol allows for different <em>cipher suites</em> to be used for doing so. These suites
2271mainly differ from each other in the type of secret being used for proving the participants' identity to each other.</p>
2272<p>One class of suites is based on a secret that is shared between the client and the server, very much like in a
2273username/password based authentication scheme. This class of suites is called <em>pre-shared key</em> or PSK-based and is
2274very popular for use cases where the devices are very constrained regarding CPU and memory. Another class of cipher
2275suites is based on certificates which use asymmetric encryption for proving possession of the secret (the private key).</p>
2276<p>The CoAP adapter supports cipher suites from both classes but only supports cipher suites from the latter class which use
2277ECDSA algorithm for authentication. In particular, this means that the client and/or server need to use
2278<em>elliptic curve cryptography</em> (ECC) based keys instead of RSA based ones.</p>
2279<p>When enabling the secure port without configuring an ECC based key and certificate, the adapter will only use PSK based
2280cipher suites for authentication. When configuring an ECC based key and certificate, the adapter will also offer
2281certificate based cipher suites to the client to use for authentication.</p>
2282<p>In any case the device&rsquo;s credentials need to be registered with the device registry. Please refer to the
2283<a href="/hono/docs/1.9/api/credentials/#standard-credential-types">Standard Credential Types</a> and the
2284<a href="/hono/docs/1.9/api/management/">Device Registry Management API</a> for additional information.</p>
2285
2286<footer class="footline">
2287
2288</footer>
2289
2290
2291 </div>
2292
2293
2294 </div>
2295
2296 <div id="navigation">
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401 </div>
3402
3403 </section>
3404
3405 <div style="left: -1000px; overflow: scroll; position: absolute; top: -1000px; border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;">
3406 <div style="border: none; box-sizing: content-box; height: 200px; margin: 0px; padding: 0px; width: 200px;"></div>
3407 </div>
Hono Bot6cac68b2021-07-16 01:10:29 +00003408 <script src="/hono/docs/js/clipboard.min.js?1626397806"></script>
3409 <script src="/hono/docs/js/perfect-scrollbar.min.js?1626397806"></script>
3410 <script src="/hono/docs/js/perfect-scrollbar.jquery.min.js?1626397806"></script>
3411 <script src="/hono/docs/js/jquery.sticky.js?1626397806"></script>
3412 <script src="/hono/docs/js/featherlight.min.js?1626397806"></script>
3413 <script src="/hono/docs/js/highlight.pack.js?1626397806"></script>
Hono Bot8fa7d952021-07-14 01:12:12 +00003414 <script>hljs.initHighlightingOnLoad();</script>
Hono Bot6cac68b2021-07-16 01:10:29 +00003415 <script src="/hono/docs/js/modernizr.custom-3.6.0.js?1626397806"></script>
3416 <script src="/hono/docs/js/learn.js?1626397806"></script>
3417 <script src="/hono/docs/js/hugo-learn.js?1626397806"></script>
Hono Bot8fa7d952021-07-14 01:12:12 +00003418
Hono Bot6cac68b2021-07-16 01:10:29 +00003419 <link href="/hono/docs/mermaid/mermaid.css?1626397806" rel="stylesheet" />
3420 <script src="/hono/docs/mermaid/mermaid.js?1626397806"></script>
Hono Bot8fa7d952021-07-14 01:12:12 +00003421 <script>
3422 mermaid.initialize({ startOnLoad: true });
3423 </script>
3424
3425
3426
3427
3428<script>
3429 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
3430 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
3431 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
3432 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
3433 })(window,document,'script','dataLayer','GTM-5WLCZXC');
3434</script>
3435
3436
3437<script src="https://www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/vendor/cookieconsent/default.min.js"></script>
3438
3439 </body>
3440</html>
3441