-
Notifications
You must be signed in to change notification settings - Fork 117
/
Copy pathinols-clangd.log
3275 lines (2119 loc) · 307 KB
/
inols-clangd.log
1
2
3
4
5
6
7
8
9
10
11
12
13
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
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
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
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
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
484
485
486
487
488
489
490
491
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
528
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
559
560
561
562
563
564
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
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
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
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
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
793
794
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
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
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
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Started logging.
>>>
Content-Length: 2159
{"method":"initialize","params":{"processId":37416,"rootPath":"C:\\Users\\ltp\\AppData\\Local\\Temp\\arduino-language-server317983139\\sketch","rootUri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server317983139/sketch","clientInfo":{"name":"vscode","version":"1.53.2"},"trace":"off","initializationOptions":{},"capabilities":{"workspace":{"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"]},"applyEdit":true,"symbol":{"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"executeCommand":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"workspaceFolders":true,"configuration":true},"textDocument":{"declaration":{"linkSupport":true},"definition":{"linkSupport":true},"implementation":{"linkSupport":true,"dynamicRegistration":true},"typeDefinition":{"linkSupport":true},"synchronization":{"willSave":true,"didSave":true,"willSaveWaitUntil":true},"documentSymbol":{"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"hierarchicalDocumentSymbolSupport":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"completion":{"completionItem":{"documentationFormat":["markdown","plaintext"],"snippetSupport":true},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]},"contextSupport":true},"signatureHelp":{"signatureInformation":{"parameterInformation":{"labelOffsetSupport":true}}},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"hover":{"contentFormat":["markdown","plaintext"]},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true},"colorProvider":{"dynamicRegistration":true}},"window":{"workDoneProgress":true}}},"id":0,"jsonrpc":"2.0"}
<<<
Content-Length: 1671
{"id":0,"jsonrpc":"2.0","result":{"capabilities":{"astProvider":true,"callHierarchyProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","refactor","info"]},"compilationDatabase":{"automaticReload":true},"completionProvider":{"allCommitCharacters":[" ","\t","(",")","[","]","{","}","<",">",":",";",",","+","-","/","*","%","^","&","#","?",".","=","\"","'","|"],"resolveProvider":false,"triggerCharacters":[".","<",">",":","\"","/"]},"declarationProvider":true,"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":true,"documentLinkProvider":{"resolveProvider":false},"documentOnTypeFormattingProvider":{"firstTriggerCharacter":"\n","moreTriggerCharacter":[]},"documentRangeFormattingProvider":true,"documentSymbolProvider":true,"executeCommandProvider":{"commands":["clangd.applyFix","clangd.applyTweak"]},"hoverProvider":true,"implementationProvider":true,"memoryUsageProvider":true,"referencesProvider":true,"renameProvider":{"prepareProvider":true},"selectionRangeProvider":true,"semanticTokensProvider":{"full":{"delta":true},"legend":{"tokenModifiers":[],"tokenTypes":["variable","variable","parameter","function","method","function","property","variable","class","enum","enumMember","type","dependent","dependent","namespace","typeParameter","concept","type","macro","comment"]},"range":false},"signatureHelpProvider":{"triggerCharacters":["(",","]},"textDocumentSync":{"change":2,"openClose":true,"save":true},"typeHierarchyProvider":true,"workspaceSymbolProvider":true},"serverInfo":{"name":"clangd","version":"clangd version 12.0.0 (https://github.com/llvm/llvm-project e841bd5f335864b8c4d81cbf4df08460ef39f2ae)"}}}
>>>
Content-Length: 52
{"method":"initialized","params":{},"jsonrpc":"2.0"}Content-Length: 3991
{"method":"textDocument/didOpen","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server317983139/sketch/BasicSender.ino.cpp","languageId":"cpp","version":1,"text":"#include \u003cArduino.h\u003e\n#line 1 \"D:\\\\RAK-Work\\\\20210707\\\\RAK13801\\\\RAK13801-UWB-Library\\\\examples\\\\BasicSender\\\\BasicSender.ino\"\n/**\n @file BasicSender.ino\n @author rakwireless.com\n @brief UWB transmit sender\n @version 0.1\n @date 2022-1-28\n @copyright Copyright (c) 2020\n**/\n\n#include \u003cSPI.h\u003e\n#include \u003cDW1000Ng.hpp\u003e\n\nconst uint8_t PIN_SS = SS; // spi select pin\n\n\n// DEBUG packet sent status and count\nvolatile unsigned long delaySent = 0;\nint16_t sentNum = 0; // todo check int type\n\ndevice_configuration_t DEFAULT_CONFIG = {\n false,\n true,\n true,\n true,\n false,\n SFDMode::STANDARD_SFD,\n Channel::CHANNEL_5,\n DataRate::RATE_850KBPS,\n PulseFrequency::FREQ_16MHZ,\n PreambleLength::LEN_256,\n PreambleCode::CODE_3\n};\n\n#line 34 \"D:\\\\RAK-Work\\\\20210707\\\\RAK13801\\\\RAK13801-UWB-Library\\\\examples\\\\BasicSender\\\\BasicSender.ino\"\nvoid setup();\n#line 88 \"D:\\\\RAK-Work\\\\20210707\\\\RAK13801\\\\RAK13801-UWB-Library\\\\examples\\\\BasicSender\\\\BasicSender.ino\"\nvoid transmit();\n#line 104 \"D:\\\\RAK-Work\\\\20210707\\\\RAK13801\\\\RAK13801-UWB-Library\\\\examples\\\\BasicSender\\\\BasicSender.ino\"\nvoid loop();\n#line 34 \"D:\\\\RAK-Work\\\\20210707\\\\RAK13801\\\\RAK13801-UWB-Library\\\\examples\\\\BasicSender\\\\BasicSender.ino\"\nvoid setup() {\n pinMode(WB_IO2, OUTPUT);\n digitalWrite(WB_IO2, HIGH); //Turn on the power switch\n delay(300);\n time_t serial_timeout = millis();\n // DEBUG monitoring\n Serial.begin(115200);\n while (!Serial)\n {\n if ((millis() - serial_timeout) \u003c 5000)\n {\n delay(100);\n }\n else\n {\n break;\n }\n }\n Serial.println(F(\"### DW1000Ng-arduino-sender-test ###\"));\n // initialize the driver\n DW1000Ng::initializeNoInterrupt(PIN_SS);\n Serial.println(F(\"DW1000Ng initialized ...\"));\n\n DW1000Ng::applyConfiguration(DEFAULT_CONFIG);\n\t//DW1000Ng::applyInterruptConfiguration(DEFAULT_INTERRUPT_CONFIG);\n\n DW1000Ng::setDeviceAddress(5);\n DW1000Ng::setNetworkId(10);\n\n DW1000Ng::setAntennaDelay(16436);\n Serial.println(F(\"Committed configuration ...\"));\n // DEBUG chip info and registers pretty printed\n char msg[128];\n DW1000Ng::getPrintableDeviceIdentifier(msg);\n Serial.print(\"Device ID: \"); Serial.println(msg);\n DW1000Ng::getPrintableExtendedUniqueIdentifier(msg);\n Serial.print(\"Unique ID: \"); Serial.println(msg);\n DW1000Ng::getPrintableNetworkIdAndShortAddress(msg);\n Serial.print(\"Network ID \u0026 Device Address: \"); Serial.println(msg);\n DW1000Ng::getPrintableDeviceMode(msg);\n Serial.print(\"Device mode: \"); Serial.println(msg);\n // attach callback for (successfully) sent messages\n //DW1000Ng::attachSentHandler(handleSent);\n // start a transmission\n transmit();\n}\n\n/*\nvoid handleSent() {\n // status change on sent success\n sentAck = true;\n}\n*/\n\nvoid transmit() {\n // transmit some data\n Serial.print(\"Transmitting packet ... #\"); Serial.println(sentNum);\n String msg = \"Hello DW1000Ng, it's #\"; msg += sentNum;\n DW1000Ng::setTransmitData(msg);\n // delay sending the message for the given amount\n delay(1000);\n DW1000Ng::startTransmit(TransmitMode::IMMEDIATE);\n delaySent = millis();\n while(!DW1000Ng::isTransmitDone()) {\n\n }\n sentNum++;\n DW1000Ng::clearTransmitStatus();\n}\n\nvoid loop() {\n transmit();\n // update and print some information about the sent message\n Serial.print(\"ARDUINO delay sent [ms] ... \"); Serial.println(millis() - delaySent);\n uint64_t newSentTime = DW1000Ng::getTransmitTimestamp();\n Serial.print(\"Processed packet ... #\"); Serial.println(sentNum);\n Serial.println();\n}\n\n"}},"jsonrpc":"2.0"}Content-Length: 199
{"method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server317983139/sketch/BasicSender.ino.cpp"}},"id":1,"jsonrpc":"2.0"}Content-Length: 298
{"method":"textDocument/codeAction","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server317983139/sketch/BasicSender.ino.cpp"},"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":0}},"context":{"diagnostics":[]}},"id":2,"jsonrpc":"2.0"}
<<<
Content-Length: 111
{"id":0,"jsonrpc":"2.0","method":"window/workDoneProgress/create","params":{"token":"backgroundIndexProgress"}}
>>>
Content-Length: 38
{"id":0,"result":null,"jsonrpc":"2.0"}
<<<
Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"begin","percentage":0,"title":"indexing"}}}Content-Length: 141
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/1","percentage":0}}}Content-Length: 142
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/36","percentage":0}}}Content-Length: 142
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/36","percentage":0}}}Content-Length: 142
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/36","percentage":0}}}Content-Length: 159
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"1/36","percentage":2.7777777777777777}}}Content-Length: 159
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"1/36","percentage":2.7777777777777777}}}Content-Length: 159
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"1/36","percentage":2.7777777777777777}}}Content-Length: 976
{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[{"code":"pp_file_not_found","message":"In included file: 'stdlib.h' file not found\n\nC:\\Users\\ltp\\AppData\\Local\\Arduino15\\packages\\rakwireless\\hardware\\mbed_rp2040\\0.0.5\\cores\\arduino\\api/Interrupts.h:5:10:\nnote: error occurred here","range":{"end":{"character":10,"line":0},"start":{"character":9,"line":0}},"severity":1,"source":"clang"},{"code":"unknown_typename_suggest","message":"Unknown type name 'time_t'; did you mean 'size_t'? (fix available)\n\nc:\\Users\\ltp\\AppData\\Local\\Programs\\Arduino IDE\\resources\\app\\node_modules\\arduino-ide-extension\\build\\lib\\clang\\12.0.0\\include\\stddef.h:46:23:\nnote: 'size_t' declared here","range":{"end":{"character":8,"line":46},"start":{"character":2,"line":46}},"severity":1,"source":"clang"}],"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server317983139/sketch/BasicSender.ino.cpp","version":1}}Content-Length: 1957
{"id":1,"jsonrpc":"2.0","result":[{"kind":13,"name":"PIN_SS","range":{"end":{"character":25,"line":14},"start":{"character":0,"line":14}},"selectionRange":{"end":{"character":20,"line":14},"start":{"character":14,"line":14}}},{"kind":13,"name":"delaySent","range":{"end":{"character":36,"line":18},"start":{"character":0,"line":18}},"selectionRange":{"end":{"character":32,"line":18},"start":{"character":23,"line":18}}},{"kind":13,"name":"sentNum","range":{"end":{"character":19,"line":19},"start":{"character":0,"line":19}},"selectionRange":{"end":{"character":15,"line":19},"start":{"character":8,"line":19}}},{"kind":13,"name":"DEFAULT_CONFIG","range":{"end":{"character":1,"line":33},"start":{"character":0,"line":21}},"selectionRange":{"end":{"character":37,"line":21},"start":{"character":23,"line":21}}},{"kind":12,"name":"setup","range":{"end":{"character":12,"line":36},"start":{"character":0,"line":36}},"selectionRange":{"end":{"character":10,"line":36},"start":{"character":5,"line":36}}},{"kind":12,"name":"transmit","range":{"end":{"character":15,"line":38},"start":{"character":0,"line":38}},"selectionRange":{"end":{"character":13,"line":38},"start":{"character":5,"line":38}}},{"kind":12,"name":"loop","range":{"end":{"character":11,"line":40},"start":{"character":0,"line":40}},"selectionRange":{"end":{"character":9,"line":40},"start":{"character":5,"line":40}}},{"kind":12,"name":"setup","range":{"end":{"character":1,"line":87},"start":{"character":0,"line":42}},"selectionRange":{"end":{"character":10,"line":42},"start":{"character":5,"line":42}}},{"kind":12,"name":"transmit","range":{"end":{"character":1,"line":110},"start":{"character":0,"line":96}},"selectionRange":{"end":{"character":13,"line":96},"start":{"character":5,"line":96}}},{"kind":12,"name":"loop","range":{"end":{"character":1,"line":119},"start":{"character":0,"line":112}},"selectionRange":{"end":{"character":9,"line":112},"start":{"character":5,"line":112}}}]}Content-Length: 36
{"id":2,"jsonrpc":"2.0","result":[]}
>>>
Content-Length: 199
{"method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server317983139/sketch/BasicSender.ino.cpp"}},"id":3,"jsonrpc":"2.0"}
<<<
Content-Length: 1957
{"id":3,"jsonrpc":"2.0","result":[{"kind":13,"name":"PIN_SS","range":{"end":{"character":25,"line":14},"start":{"character":0,"line":14}},"selectionRange":{"end":{"character":20,"line":14},"start":{"character":14,"line":14}}},{"kind":13,"name":"delaySent","range":{"end":{"character":36,"line":18},"start":{"character":0,"line":18}},"selectionRange":{"end":{"character":32,"line":18},"start":{"character":23,"line":18}}},{"kind":13,"name":"sentNum","range":{"end":{"character":19,"line":19},"start":{"character":0,"line":19}},"selectionRange":{"end":{"character":15,"line":19},"start":{"character":8,"line":19}}},{"kind":13,"name":"DEFAULT_CONFIG","range":{"end":{"character":1,"line":33},"start":{"character":0,"line":21}},"selectionRange":{"end":{"character":37,"line":21},"start":{"character":23,"line":21}}},{"kind":12,"name":"setup","range":{"end":{"character":12,"line":36},"start":{"character":0,"line":36}},"selectionRange":{"end":{"character":10,"line":36},"start":{"character":5,"line":36}}},{"kind":12,"name":"transmit","range":{"end":{"character":15,"line":38},"start":{"character":0,"line":38}},"selectionRange":{"end":{"character":13,"line":38},"start":{"character":5,"line":38}}},{"kind":12,"name":"loop","range":{"end":{"character":11,"line":40},"start":{"character":0,"line":40}},"selectionRange":{"end":{"character":9,"line":40},"start":{"character":5,"line":40}}},{"kind":12,"name":"setup","range":{"end":{"character":1,"line":87},"start":{"character":0,"line":42}},"selectionRange":{"end":{"character":10,"line":42},"start":{"character":5,"line":42}}},{"kind":12,"name":"transmit","range":{"end":{"character":1,"line":110},"start":{"character":0,"line":96}},"selectionRange":{"end":{"character":13,"line":96},"start":{"character":5,"line":96}}},{"kind":12,"name":"loop","range":{"end":{"character":1,"line":119},"start":{"character":0,"line":112}},"selectionRange":{"end":{"character":9,"line":112},"start":{"character":5,"line":112}}}]}
>>>
Content-Length: 62
{"method":"$/cancelRequest","params":{"id":2},"jsonrpc":"2.0"}Content-Length: 199
{"method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server317983139/sketch/BasicSender.ino.cpp"}},"id":4,"jsonrpc":"2.0"}
<<<
Content-Length: 1957
{"id":4,"jsonrpc":"2.0","result":[{"kind":13,"name":"PIN_SS","range":{"end":{"character":25,"line":14},"start":{"character":0,"line":14}},"selectionRange":{"end":{"character":20,"line":14},"start":{"character":14,"line":14}}},{"kind":13,"name":"delaySent","range":{"end":{"character":36,"line":18},"start":{"character":0,"line":18}},"selectionRange":{"end":{"character":32,"line":18},"start":{"character":23,"line":18}}},{"kind":13,"name":"sentNum","range":{"end":{"character":19,"line":19},"start":{"character":0,"line":19}},"selectionRange":{"end":{"character":15,"line":19},"start":{"character":8,"line":19}}},{"kind":13,"name":"DEFAULT_CONFIG","range":{"end":{"character":1,"line":33},"start":{"character":0,"line":21}},"selectionRange":{"end":{"character":37,"line":21},"start":{"character":23,"line":21}}},{"kind":12,"name":"setup","range":{"end":{"character":12,"line":36},"start":{"character":0,"line":36}},"selectionRange":{"end":{"character":10,"line":36},"start":{"character":5,"line":36}}},{"kind":12,"name":"transmit","range":{"end":{"character":15,"line":38},"start":{"character":0,"line":38}},"selectionRange":{"end":{"character":13,"line":38},"start":{"character":5,"line":38}}},{"kind":12,"name":"loop","range":{"end":{"character":11,"line":40},"start":{"character":0,"line":40}},"selectionRange":{"end":{"character":9,"line":40},"start":{"character":5,"line":40}}},{"kind":12,"name":"setup","range":{"end":{"character":1,"line":87},"start":{"character":0,"line":42}},"selectionRange":{"end":{"character":10,"line":42},"start":{"character":5,"line":42}}},{"kind":12,"name":"transmit","range":{"end":{"character":1,"line":110},"start":{"character":0,"line":96}},"selectionRange":{"end":{"character":13,"line":96},"start":{"character":5,"line":96}}},{"kind":12,"name":"loop","range":{"end":{"character":1,"line":119},"start":{"character":0,"line":112}},"selectionRange":{"end":{"character":9,"line":112},"start":{"character":5,"line":112}}}]}
>>>
Content-Length: 62
{"method":"$/cancelRequest","params":{"id":1},"jsonrpc":"2.0"}
<<<
Content-Length: 159
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"2/36","percentage":5.5555555555555554}}}Content-Length: 159
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"2/36","percentage":5.5555555555555554}}}Content-Length: 159
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"3/36","percentage":8.3333333333333339}}}Content-Length: 159
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"3/36","percentage":8.3333333333333339}}}Content-Length: 159
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"4/36","percentage":11.111111111111111}}}Content-Length: 159
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"4/36","percentage":11.111111111111111}}}Content-Length: 159
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"5/36","percentage":13.888888888888889}}}Content-Length: 159
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"5/36","percentage":13.888888888888889}}}Content-Length: 159
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"6/36","percentage":16.666666666666668}}}Content-Length: 159
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"6/36","percentage":16.666666666666668}}}Content-Length: 159
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"7/36","percentage":19.444444444444443}}}Content-Length: 159
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"7/36","percentage":19.444444444444443}}}Content-Length: 159
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"8/36","percentage":22.222222222222221}}}Content-Length: 159
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"8/36","percentage":22.222222222222221}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"9/36","percentage":25}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"9/36","percentage":25}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"10/36","percentage":27.777777777777779}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"10/36","percentage":27.777777777777779}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"11/36","percentage":30.555555555555557}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"11/36","percentage":30.555555555555557}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"12/36","percentage":33.333333333333336}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"12/36","percentage":33.333333333333336}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"13/36","percentage":36.111111111111114}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"13/36","percentage":36.111111111111114}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"14/36","percentage":38.888888888888886}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"14/36","percentage":38.888888888888886}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"15/36","percentage":41.666666666666664}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"15/36","percentage":41.666666666666664}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"16/36","percentage":44.444444444444443}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"16/36","percentage":44.444444444444443}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"17/36","percentage":47.222222222222221}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"17/36","percentage":47.222222222222221}}}Content-Length: 144
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"18/36","percentage":50}}}Content-Length: 144
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"18/36","percentage":50}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"19/36","percentage":52.777777777777779}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"19/36","percentage":52.777777777777779}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"20/36","percentage":55.555555555555557}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"20/36","percentage":55.555555555555557}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"21/36","percentage":58.333333333333336}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"21/36","percentage":58.333333333333336}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"22/36","percentage":61.111111111111114}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"22/36","percentage":61.111111111111114}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"23/36","percentage":63.888888888888886}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"23/36","percentage":63.888888888888886}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"24/36","percentage":66.666666666666671}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"24/36","percentage":66.666666666666671}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"25/36","percentage":69.444444444444443}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"25/36","percentage":69.444444444444443}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"26/36","percentage":72.222222222222229}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"26/36","percentage":72.222222222222229}}}Content-Length: 144
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"27/36","percentage":75}}}Content-Length: 144
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"27/36","percentage":75}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"28/36","percentage":77.777777777777771}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"28/36","percentage":77.777777777777771}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"29/36","percentage":80.555555555555557}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"29/36","percentage":80.555555555555557}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"30/36","percentage":83.333333333333329}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"30/36","percentage":83.333333333333329}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"31/36","percentage":86.111111111111114}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"31/36","percentage":86.111111111111114}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"32/36","percentage":88.888888888888886}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"32/36","percentage":88.888888888888886}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"33/36","percentage":91.666666666666671}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"34/36","percentage":94.444444444444443}}}Content-Length: 160
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"35/36","percentage":97.222222222222229}}}Content-Length: 107
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"end"}}}
>>>
Content-Length: 229
{"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server317983139/sketch/BasicSender.ino.cpp"},"position":{"line":103,"character":30}},"id":5,"jsonrpc":"2.0"}
<<<
Content-Length: 270
{"id":5,"jsonrpc":"2.0","result":{"contents":{"kind":"markdown","value":"### enum `TransmitMode` \n\n---\nValue = `IMMEDIATE (0)` \n\n---\n```cpp\nenum class TransmitMode : int {}\n```"},"range":{"end":{"character":38,"line":103},"start":{"character":26,"line":103}}}}
>>>
Content-Length: 229
{"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server317983139/sketch/BasicSender.ino.cpp"},"position":{"line":103,"character":28}},"id":6,"jsonrpc":"2.0"}
<<<
Content-Length: 270
{"id":6,"jsonrpc":"2.0","result":{"contents":{"kind":"markdown","value":"### enum `TransmitMode` \n\n---\nValue = `IMMEDIATE (0)` \n\n---\n```cpp\nenum class TransmitMode : int {}\n```"},"range":{"end":{"character":38,"line":103},"start":{"character":26,"line":103}}}}
>>>
Content-Length: 229
{"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server317983139/sketch/BasicSender.ino.cpp"},"position":{"line":114,"character":23}},"id":7,"jsonrpc":"2.0"}
<<<
Content-Length: 38
{"id":7,"jsonrpc":"2.0","result":null}
>>>
Content-Length: 241
{"method":"textDocument/documentHighlight","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server317983139/sketch/BasicSender.ino.cpp"},"position":{"line":114,"character":23}},"id":8,"jsonrpc":"2.0"}
<<<
Content-Length: 36
{"id":8,"jsonrpc":"2.0","result":[]}
>>>
Content-Length: 302
{"method":"textDocument/codeAction","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server317983139/sketch/BasicSender.ino.cpp"},"range":{"start":{"line":114,"character":0},"end":{"line":115,"character":0}},"context":{"diagnostics":[]}},"id":9,"jsonrpc":"2.0"}
<<<
Content-Length: 36
{"id":9,"jsonrpc":"2.0","result":[]}
>>>
Content-Length: 305
{"method":"textDocument/codeAction","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server317983139/sketch/BasicSender.ino.cpp"},"range":{"start":{"line":112,"character":13},"end":{"line":112,"character":13}},"context":{"diagnostics":[]}},"id":10,"jsonrpc":"2.0"}
<<<
Content-Length: 37
{"id":10,"jsonrpc":"2.0","result":[]}
>>>
Content-Length: 230
{"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server317983139/sketch/BasicSender.ino.cpp"},"position":{"line":103,"character":39}},"id":11,"jsonrpc":"2.0"}
<<<
Content-Length: 271
{"id":11,"jsonrpc":"2.0","result":{"contents":{"kind":"markdown","value":"### enum `TransmitMode` \n\n---\nValue = `IMMEDIATE (0)` \n\n---\n```cpp\nenum class TransmitMode : int {}\n```"},"range":{"end":{"character":40,"line":103},"start":{"character":38,"line":103}}}}
>>>
Content-Length: 230
{"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server317983139/sketch/BasicSender.ino.cpp"},"position":{"line":103,"character":40}},"id":12,"jsonrpc":"2.0"}
<<<
Content-Length: 319
{"id":12,"jsonrpc":"2.0","result":{"contents":{"kind":"markdown","value":"### enumerator `IMMEDIATE` \n\n---\nType: `enum TransmitMode` \nValue = `0` \nPassed by reference as mode \n\n---\n```cpp\n// In TransmitMode\nIMMEDIATE\n```"},"range":{"end":{"character":49,"line":103},"start":{"character":40,"line":103}}}}
>>>
Content-Length: 229
{"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server317983139/sketch/BasicSender.ino.cpp"},"position":{"line":98,"character":29}},"id":13,"jsonrpc":"2.0"}
<<<
Content-Length: 39
{"id":13,"jsonrpc":"2.0","result":null}
>>>
Content-Length: 59
{"method":"shutdown","params":null,"id":14,"jsonrpc":"2.0"}
<<<
Content-Length: 39
{"id":14,"jsonrpc":"2.0","result":null}
>>>
Content-Length: 47
{"method":"exit","params":null,"jsonrpc":"2.0"}<<< Read Error: EOF
Started logging.
>>>
Content-Length: 2159
{"method":"initialize","params":{"processId":37416,"rootPath":"C:\\Users\\ltp\\AppData\\Local\\Temp\\arduino-language-server767291003\\sketch","rootUri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server767291003/sketch","clientInfo":{"name":"vscode","version":"1.53.2"},"trace":"off","initializationOptions":{},"capabilities":{"workspace":{"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"]},"applyEdit":true,"symbol":{"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"executeCommand":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"workspaceFolders":true,"configuration":true},"textDocument":{"declaration":{"linkSupport":true},"definition":{"linkSupport":true},"implementation":{"linkSupport":true,"dynamicRegistration":true},"typeDefinition":{"linkSupport":true},"synchronization":{"willSave":true,"didSave":true,"willSaveWaitUntil":true},"documentSymbol":{"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"hierarchicalDocumentSymbolSupport":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"completion":{"completionItem":{"documentationFormat":["markdown","plaintext"],"snippetSupport":true},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]},"contextSupport":true},"signatureHelp":{"signatureInformation":{"parameterInformation":{"labelOffsetSupport":true}}},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"hover":{"contentFormat":["markdown","plaintext"]},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true},"colorProvider":{"dynamicRegistration":true}},"window":{"workDoneProgress":true}}},"id":0,"jsonrpc":"2.0"}
<<<
Content-Length: 1671
{"id":0,"jsonrpc":"2.0","result":{"capabilities":{"astProvider":true,"callHierarchyProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","refactor","info"]},"compilationDatabase":{"automaticReload":true},"completionProvider":{"allCommitCharacters":[" ","\t","(",")","[","]","{","}","<",">",":",";",",","+","-","/","*","%","^","&","#","?",".","=","\"","'","|"],"resolveProvider":false,"triggerCharacters":[".","<",">",":","\"","/"]},"declarationProvider":true,"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":true,"documentLinkProvider":{"resolveProvider":false},"documentOnTypeFormattingProvider":{"firstTriggerCharacter":"\n","moreTriggerCharacter":[]},"documentRangeFormattingProvider":true,"documentSymbolProvider":true,"executeCommandProvider":{"commands":["clangd.applyFix","clangd.applyTweak"]},"hoverProvider":true,"implementationProvider":true,"memoryUsageProvider":true,"referencesProvider":true,"renameProvider":{"prepareProvider":true},"selectionRangeProvider":true,"semanticTokensProvider":{"full":{"delta":true},"legend":{"tokenModifiers":[],"tokenTypes":["variable","variable","parameter","function","method","function","property","variable","class","enum","enumMember","type","dependent","dependent","namespace","typeParameter","concept","type","macro","comment"]},"range":false},"signatureHelpProvider":{"triggerCharacters":["(",","]},"textDocumentSync":{"change":2,"openClose":true,"save":true},"typeHierarchyProvider":true,"workspaceSymbolProvider":true},"serverInfo":{"name":"clangd","version":"clangd version 12.0.0 (https://github.com/llvm/llvm-project e841bd5f335864b8c4d81cbf4df08460ef39f2ae)"}}}
>>>
Content-Length: 52
{"method":"initialized","params":{},"jsonrpc":"2.0"}Content-Length: 3991
{"method":"textDocument/didOpen","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server767291003/sketch/BasicSender.ino.cpp","languageId":"cpp","version":1,"text":"#include \u003cArduino.h\u003e\n#line 1 \"D:\\\\RAK-Work\\\\20210707\\\\RAK13801\\\\RAK13801-UWB-Library\\\\examples\\\\BasicSender\\\\BasicSender.ino\"\n/**\n @file BasicSender.ino\n @author rakwireless.com\n @brief UWB transmit sender\n @version 0.1\n @date 2022-1-28\n @copyright Copyright (c) 2020\n**/\n\n#include \u003cSPI.h\u003e\n#include \u003cDW1000Ng.hpp\u003e\n\nconst uint8_t PIN_SS = SS; // spi select pin\n\n\n// DEBUG packet sent status and count\nvolatile unsigned long delaySent = 0;\nint16_t sentNum = 0; // todo check int type\n\ndevice_configuration_t DEFAULT_CONFIG = {\n false,\n true,\n true,\n true,\n false,\n SFDMode::STANDARD_SFD,\n Channel::CHANNEL_5,\n DataRate::RATE_850KBPS,\n PulseFrequency::FREQ_16MHZ,\n PreambleLength::LEN_256,\n PreambleCode::CODE_3\n};\n\n#line 34 \"D:\\\\RAK-Work\\\\20210707\\\\RAK13801\\\\RAK13801-UWB-Library\\\\examples\\\\BasicSender\\\\BasicSender.ino\"\nvoid setup();\n#line 88 \"D:\\\\RAK-Work\\\\20210707\\\\RAK13801\\\\RAK13801-UWB-Library\\\\examples\\\\BasicSender\\\\BasicSender.ino\"\nvoid transmit();\n#line 104 \"D:\\\\RAK-Work\\\\20210707\\\\RAK13801\\\\RAK13801-UWB-Library\\\\examples\\\\BasicSender\\\\BasicSender.ino\"\nvoid loop();\n#line 34 \"D:\\\\RAK-Work\\\\20210707\\\\RAK13801\\\\RAK13801-UWB-Library\\\\examples\\\\BasicSender\\\\BasicSender.ino\"\nvoid setup() {\n pinMode(WB_IO2, OUTPUT);\n digitalWrite(WB_IO2, HIGH); //Turn on the power switch\n delay(300);\n time_t serial_timeout = millis();\n // DEBUG monitoring\n Serial.begin(115200);\n while (!Serial)\n {\n if ((millis() - serial_timeout) \u003c 5000)\n {\n delay(100);\n }\n else\n {\n break;\n }\n }\n Serial.println(F(\"### DW1000Ng-arduino-sender-test ###\"));\n // initialize the driver\n DW1000Ng::initializeNoInterrupt(PIN_SS);\n Serial.println(F(\"DW1000Ng initialized ...\"));\n\n DW1000Ng::applyConfiguration(DEFAULT_CONFIG);\n\t//DW1000Ng::applyInterruptConfiguration(DEFAULT_INTERRUPT_CONFIG);\n\n DW1000Ng::setDeviceAddress(5);\n DW1000Ng::setNetworkId(10);\n\n DW1000Ng::setAntennaDelay(16436);\n Serial.println(F(\"Committed configuration ...\"));\n // DEBUG chip info and registers pretty printed\n char msg[128];\n DW1000Ng::getPrintableDeviceIdentifier(msg);\n Serial.print(\"Device ID: \"); Serial.println(msg);\n DW1000Ng::getPrintableExtendedUniqueIdentifier(msg);\n Serial.print(\"Unique ID: \"); Serial.println(msg);\n DW1000Ng::getPrintableNetworkIdAndShortAddress(msg);\n Serial.print(\"Network ID \u0026 Device Address: \"); Serial.println(msg);\n DW1000Ng::getPrintableDeviceMode(msg);\n Serial.print(\"Device mode: \"); Serial.println(msg);\n // attach callback for (successfully) sent messages\n //DW1000Ng::attachSentHandler(handleSent);\n // start a transmission\n transmit();\n}\n\n/*\nvoid handleSent() {\n // status change on sent success\n sentAck = true;\n}\n*/\n\nvoid transmit() {\n // transmit some data\n Serial.print(\"Transmitting packet ... #\"); Serial.println(sentNum);\n String msg = \"Hello DW1000Ng, it's #\"; msg += sentNum;\n DW1000Ng::setTransmitData(msg);\n // delay sending the message for the given amount\n delay(1000);\n DW1000Ng::startTransmit(TransmitMode::IMMEDIATE);\n delaySent = millis();\n while(!DW1000Ng::isTransmitDone()) {\n\n }\n sentNum++;\n DW1000Ng::clearTransmitStatus();\n}\n\nvoid loop() {\n transmit();\n // update and print some information about the sent message\n Serial.print(\"ARDUINO delay sent [ms] ... \"); Serial.println(millis() - delaySent);\n uint64_t newSentTime = DW1000Ng::getTransmitTimestamp();\n Serial.print(\"Processed packet ... #\"); Serial.println(sentNum);\n Serial.println();\n}\n\n"}},"jsonrpc":"2.0"}Content-Length: 199
{"method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server767291003/sketch/BasicSender.ino.cpp"}},"id":1,"jsonrpc":"2.0"}Content-Length: 304
{"method":"textDocument/codeAction","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server767291003/sketch/BasicSender.ino.cpp"},"range":{"start":{"line":112,"character":13},"end":{"line":112,"character":13}},"context":{"diagnostics":[]}},"id":2,"jsonrpc":"2.0"}
<<<
Content-Length: 111
{"id":0,"jsonrpc":"2.0","method":"window/workDoneProgress/create","params":{"token":"backgroundIndexProgress"}}
>>>
Content-Length: 38
{"id":0,"result":null,"jsonrpc":"2.0"}
<<<
Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"begin","percentage":0,"title":"indexing"}}}Content-Length: 141
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/1","percentage":0}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/100","percentage":0}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/100","percentage":0}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/100","percentage":0}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/100","percentage":0}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"1/100","percentage":1}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"1/100","percentage":1}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"2/100","percentage":2}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"2/100","percentage":2}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"3/100","percentage":3}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"3/100","percentage":3}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"4/100","percentage":4}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"4/100","percentage":4}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"5/100","percentage":5}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"5/100","percentage":5}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"6/100","percentage":6}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"6/100","percentage":6}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"7/100","percentage":7}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"7/100","percentage":7}}}Content-Length: 1338
{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[{"code":"pp_file_not_found","message":"In included file: 'stdlib.h' file not found\n\nC:\\Users\\ltp\\AppData\\Local\\Arduino15\\packages\\rakwireless\\hardware\\nrf52\\0.21.20\\cores\\nRF5\\Arduino.h:6:10:\nnote: error occurred here","range":{"end":{"character":10,"line":0},"start":{"character":9,"line":0}},"severity":1,"source":"clang"},{"code":"undeclared_var_use","message":"Use of undeclared identifier 'WB_IO2'","range":{"end":{"character":16,"line":43},"start":{"character":10,"line":43}},"severity":1,"source":"clang"},{"code":"undeclared_var_use","message":"Use of undeclared identifier 'WB_IO2'","range":{"end":{"character":21,"line":44},"start":{"character":15,"line":44}},"severity":1,"source":"clang"},{"code":"unknown_typename_suggest","message":"Unknown type name 'time_t'; did you mean 'size_t'? (fix available)\n\nc:\\Users\\ltp\\AppData\\Local\\Programs\\Arduino IDE\\resources\\app\\node_modules\\arduino-ide-extension\\build\\lib\\clang\\12.0.0\\include\\stddef.h:46:23:\nnote: 'size_t' declared here","range":{"end":{"character":8,"line":46},"start":{"character":2,"line":46}},"severity":1,"source":"clang"}],"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server767291003/sketch/BasicSender.ino.cpp","version":1}}Content-Length: 1957
{"id":1,"jsonrpc":"2.0","result":[{"kind":13,"name":"PIN_SS","range":{"end":{"character":25,"line":14},"start":{"character":0,"line":14}},"selectionRange":{"end":{"character":20,"line":14},"start":{"character":14,"line":14}}},{"kind":13,"name":"delaySent","range":{"end":{"character":36,"line":18},"start":{"character":0,"line":18}},"selectionRange":{"end":{"character":32,"line":18},"start":{"character":23,"line":18}}},{"kind":13,"name":"sentNum","range":{"end":{"character":19,"line":19},"start":{"character":0,"line":19}},"selectionRange":{"end":{"character":15,"line":19},"start":{"character":8,"line":19}}},{"kind":13,"name":"DEFAULT_CONFIG","range":{"end":{"character":1,"line":33},"start":{"character":0,"line":21}},"selectionRange":{"end":{"character":37,"line":21},"start":{"character":23,"line":21}}},{"kind":12,"name":"setup","range":{"end":{"character":12,"line":36},"start":{"character":0,"line":36}},"selectionRange":{"end":{"character":10,"line":36},"start":{"character":5,"line":36}}},{"kind":12,"name":"transmit","range":{"end":{"character":15,"line":38},"start":{"character":0,"line":38}},"selectionRange":{"end":{"character":13,"line":38},"start":{"character":5,"line":38}}},{"kind":12,"name":"loop","range":{"end":{"character":11,"line":40},"start":{"character":0,"line":40}},"selectionRange":{"end":{"character":9,"line":40},"start":{"character":5,"line":40}}},{"kind":12,"name":"setup","range":{"end":{"character":1,"line":87},"start":{"character":0,"line":42}},"selectionRange":{"end":{"character":10,"line":42},"start":{"character":5,"line":42}}},{"kind":12,"name":"transmit","range":{"end":{"character":1,"line":110},"start":{"character":0,"line":96}},"selectionRange":{"end":{"character":13,"line":96},"start":{"character":5,"line":96}}},{"kind":12,"name":"loop","range":{"end":{"character":1,"line":119},"start":{"character":0,"line":112}},"selectionRange":{"end":{"character":9,"line":112},"start":{"character":5,"line":112}}}]}Content-Length: 36
{"id":2,"jsonrpc":"2.0","result":[]}
>>>
Content-Length: 229
{"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server767291003/sketch/BasicSender.ino.cpp"},"position":{"line":103,"character":25}},"id":3,"jsonrpc":"2.0"}
<<<
Content-Length: 484
{"id":3,"jsonrpc":"2.0","result":{"contents":{"kind":"markdown","value":"### function `startTransmit` \n\n---\n→ `void` \nParameters: \n- `enum TransmitMode mode = TransmitMode::IMMEDIATE`\n\nSets the device in transmission mode \n@param [in] mode IMMEDIATE or DELAYED transmission \n\n---\n```cpp\n// In namespace DW1000Ng\nvoid startTransmit(TransmitMode mode = TransmitMode::IMMEDIATE)\n```"},"range":{"end":{"character":25,"line":103},"start":{"character":12,"line":103}}}}
>>>
Content-Length: 199
{"method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server767291003/sketch/BasicSender.ino.cpp"}},"id":4,"jsonrpc":"2.0"}
<<<
Content-Length: 1957
{"id":4,"jsonrpc":"2.0","result":[{"kind":13,"name":"PIN_SS","range":{"end":{"character":25,"line":14},"start":{"character":0,"line":14}},"selectionRange":{"end":{"character":20,"line":14},"start":{"character":14,"line":14}}},{"kind":13,"name":"delaySent","range":{"end":{"character":36,"line":18},"start":{"character":0,"line":18}},"selectionRange":{"end":{"character":32,"line":18},"start":{"character":23,"line":18}}},{"kind":13,"name":"sentNum","range":{"end":{"character":19,"line":19},"start":{"character":0,"line":19}},"selectionRange":{"end":{"character":15,"line":19},"start":{"character":8,"line":19}}},{"kind":13,"name":"DEFAULT_CONFIG","range":{"end":{"character":1,"line":33},"start":{"character":0,"line":21}},"selectionRange":{"end":{"character":37,"line":21},"start":{"character":23,"line":21}}},{"kind":12,"name":"setup","range":{"end":{"character":12,"line":36},"start":{"character":0,"line":36}},"selectionRange":{"end":{"character":10,"line":36},"start":{"character":5,"line":36}}},{"kind":12,"name":"transmit","range":{"end":{"character":15,"line":38},"start":{"character":0,"line":38}},"selectionRange":{"end":{"character":13,"line":38},"start":{"character":5,"line":38}}},{"kind":12,"name":"loop","range":{"end":{"character":11,"line":40},"start":{"character":0,"line":40}},"selectionRange":{"end":{"character":9,"line":40},"start":{"character":5,"line":40}}},{"kind":12,"name":"setup","range":{"end":{"character":1,"line":87},"start":{"character":0,"line":42}},"selectionRange":{"end":{"character":10,"line":42},"start":{"character":5,"line":42}}},{"kind":12,"name":"transmit","range":{"end":{"character":1,"line":110},"start":{"character":0,"line":96}},"selectionRange":{"end":{"character":13,"line":96},"start":{"character":5,"line":96}}},{"kind":12,"name":"loop","range":{"end":{"character":1,"line":119},"start":{"character":0,"line":112}},"selectionRange":{"end":{"character":9,"line":112},"start":{"character":5,"line":112}}}]}
>>>
Content-Length: 62
{"method":"$/cancelRequest","params":{"id":2},"jsonrpc":"2.0"}Content-Length: 58
{"method":"shutdown","params":null,"id":5,"jsonrpc":"2.0"}
<<<
Content-Length: 38
{"id":5,"jsonrpc":"2.0","result":null}
>>>
Content-Length: 62
{"method":"$/cancelRequest","params":{"id":1},"jsonrpc":"2.0"}Content-Length: 47
{"method":"exit","params":null,"jsonrpc":"2.0"}
<<<
Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"8/100","percentage":8}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"9/100","percentage":9}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"10/100","percentage":10}}}Content-Length: 142
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/89","percentage":0}}}<<< Read Error: EOF
Started logging.
>>>
Content-Length: 2159
{"method":"initialize","params":{"processId":37416,"rootPath":"C:\\Users\\ltp\\AppData\\Local\\Temp\\arduino-language-server583445751\\sketch","rootUri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server583445751/sketch","clientInfo":{"name":"vscode","version":"1.53.2"},"trace":"off","initializationOptions":{},"capabilities":{"workspace":{"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"]},"applyEdit":true,"symbol":{"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"executeCommand":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"workspaceFolders":true,"configuration":true},"textDocument":{"declaration":{"linkSupport":true},"definition":{"linkSupport":true},"implementation":{"linkSupport":true,"dynamicRegistration":true},"typeDefinition":{"linkSupport":true},"synchronization":{"willSave":true,"didSave":true,"willSaveWaitUntil":true},"documentSymbol":{"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"hierarchicalDocumentSymbolSupport":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"completion":{"completionItem":{"documentationFormat":["markdown","plaintext"],"snippetSupport":true},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]},"contextSupport":true},"signatureHelp":{"signatureInformation":{"parameterInformation":{"labelOffsetSupport":true}}},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"hover":{"contentFormat":["markdown","plaintext"]},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true},"colorProvider":{"dynamicRegistration":true}},"window":{"workDoneProgress":true}}},"id":0,"jsonrpc":"2.0"}
<<<
Content-Length: 1671
{"id":0,"jsonrpc":"2.0","result":{"capabilities":{"astProvider":true,"callHierarchyProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","refactor","info"]},"compilationDatabase":{"automaticReload":true},"completionProvider":{"allCommitCharacters":[" ","\t","(",")","[","]","{","}","<",">",":",";",",","+","-","/","*","%","^","&","#","?",".","=","\"","'","|"],"resolveProvider":false,"triggerCharacters":[".","<",">",":","\"","/"]},"declarationProvider":true,"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":true,"documentLinkProvider":{"resolveProvider":false},"documentOnTypeFormattingProvider":{"firstTriggerCharacter":"\n","moreTriggerCharacter":[]},"documentRangeFormattingProvider":true,"documentSymbolProvider":true,"executeCommandProvider":{"commands":["clangd.applyFix","clangd.applyTweak"]},"hoverProvider":true,"implementationProvider":true,"memoryUsageProvider":true,"referencesProvider":true,"renameProvider":{"prepareProvider":true},"selectionRangeProvider":true,"semanticTokensProvider":{"full":{"delta":true},"legend":{"tokenModifiers":[],"tokenTypes":["variable","variable","parameter","function","method","function","property","variable","class","enum","enumMember","type","dependent","dependent","namespace","typeParameter","concept","type","macro","comment"]},"range":false},"signatureHelpProvider":{"triggerCharacters":["(",","]},"textDocumentSync":{"change":2,"openClose":true,"save":true},"typeHierarchyProvider":true,"workspaceSymbolProvider":true},"serverInfo":{"name":"clangd","version":"clangd version 12.0.0 (https://github.com/llvm/llvm-project e841bd5f335864b8c4d81cbf4df08460ef39f2ae)"}}}
>>>
Content-Length: 52
{"method":"initialized","params":{},"jsonrpc":"2.0"}Content-Length: 3991
{"method":"textDocument/didOpen","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server583445751/sketch/BasicSender.ino.cpp","languageId":"cpp","version":1,"text":"#include \u003cArduino.h\u003e\n#line 1 \"D:\\\\RAK-Work\\\\20210707\\\\RAK13801\\\\RAK13801-UWB-Library\\\\examples\\\\BasicSender\\\\BasicSender.ino\"\n/**\n @file BasicSender.ino\n @author rakwireless.com\n @brief UWB transmit sender\n @version 0.1\n @date 2022-1-28\n @copyright Copyright (c) 2020\n**/\n\n#include \u003cSPI.h\u003e\n#include \u003cDW1000Ng.hpp\u003e\n\nconst uint8_t PIN_SS = SS; // spi select pin\n\n\n// DEBUG packet sent status and count\nvolatile unsigned long delaySent = 0;\nint16_t sentNum = 0; // todo check int type\n\ndevice_configuration_t DEFAULT_CONFIG = {\n false,\n true,\n true,\n true,\n false,\n SFDMode::STANDARD_SFD,\n Channel::CHANNEL_5,\n DataRate::RATE_850KBPS,\n PulseFrequency::FREQ_16MHZ,\n PreambleLength::LEN_256,\n PreambleCode::CODE_3\n};\n\n#line 34 \"D:\\\\RAK-Work\\\\20210707\\\\RAK13801\\\\RAK13801-UWB-Library\\\\examples\\\\BasicSender\\\\BasicSender.ino\"\nvoid setup();\n#line 88 \"D:\\\\RAK-Work\\\\20210707\\\\RAK13801\\\\RAK13801-UWB-Library\\\\examples\\\\BasicSender\\\\BasicSender.ino\"\nvoid transmit();\n#line 104 \"D:\\\\RAK-Work\\\\20210707\\\\RAK13801\\\\RAK13801-UWB-Library\\\\examples\\\\BasicSender\\\\BasicSender.ino\"\nvoid loop();\n#line 34 \"D:\\\\RAK-Work\\\\20210707\\\\RAK13801\\\\RAK13801-UWB-Library\\\\examples\\\\BasicSender\\\\BasicSender.ino\"\nvoid setup() {\n pinMode(WB_IO2, OUTPUT);\n digitalWrite(WB_IO2, HIGH); //Turn on the power switch\n delay(300);\n time_t serial_timeout = millis();\n // DEBUG monitoring\n Serial.begin(115200);\n while (!Serial)\n {\n if ((millis() - serial_timeout) \u003c 5000)\n {\n delay(100);\n }\n else\n {\n break;\n }\n }\n Serial.println(F(\"### DW1000Ng-arduino-sender-test ###\"));\n // initialize the driver\n DW1000Ng::initializeNoInterrupt(PIN_SS);\n Serial.println(F(\"DW1000Ng initialized ...\"));\n\n DW1000Ng::applyConfiguration(DEFAULT_CONFIG);\n\t//DW1000Ng::applyInterruptConfiguration(DEFAULT_INTERRUPT_CONFIG);\n\n DW1000Ng::setDeviceAddress(5);\n DW1000Ng::setNetworkId(10);\n\n DW1000Ng::setAntennaDelay(16436);\n Serial.println(F(\"Committed configuration ...\"));\n // DEBUG chip info and registers pretty printed\n char msg[128];\n DW1000Ng::getPrintableDeviceIdentifier(msg);\n Serial.print(\"Device ID: \"); Serial.println(msg);\n DW1000Ng::getPrintableExtendedUniqueIdentifier(msg);\n Serial.print(\"Unique ID: \"); Serial.println(msg);\n DW1000Ng::getPrintableNetworkIdAndShortAddress(msg);\n Serial.print(\"Network ID \u0026 Device Address: \"); Serial.println(msg);\n DW1000Ng::getPrintableDeviceMode(msg);\n Serial.print(\"Device mode: \"); Serial.println(msg);\n // attach callback for (successfully) sent messages\n //DW1000Ng::attachSentHandler(handleSent);\n // start a transmission\n transmit();\n}\n\n/*\nvoid handleSent() {\n // status change on sent success\n sentAck = true;\n}\n*/\n\nvoid transmit() {\n // transmit some data\n Serial.print(\"Transmitting packet ... #\"); Serial.println(sentNum);\n String msg = \"Hello DW1000Ng, it's #\"; msg += sentNum;\n DW1000Ng::setTransmitData(msg);\n // delay sending the message for the given amount\n delay(1000);\n DW1000Ng::startTransmit(TransmitMode::IMMEDIATE);\n delaySent = millis();\n while(!DW1000Ng::isTransmitDone()) {\n\n }\n sentNum++;\n DW1000Ng::clearTransmitStatus();\n}\n\nvoid loop() {\n transmit();\n // update and print some information about the sent message\n Serial.print(\"ARDUINO delay sent [ms] ... \"); Serial.println(millis() - delaySent);\n uint64_t newSentTime = DW1000Ng::getTransmitTimestamp();\n Serial.print(\"Processed packet ... #\"); Serial.println(sentNum);\n Serial.println();\n}\n\n"}},"jsonrpc":"2.0"}Content-Length: 199
{"method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server583445751/sketch/BasicSender.ino.cpp"}},"id":1,"jsonrpc":"2.0"}Content-Length: 304
{"method":"textDocument/codeAction","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server583445751/sketch/BasicSender.ino.cpp"},"range":{"start":{"line":112,"character":13},"end":{"line":112,"character":13}},"context":{"diagnostics":[]}},"id":2,"jsonrpc":"2.0"}
<<<
Content-Length: 111
{"id":0,"jsonrpc":"2.0","method":"window/workDoneProgress/create","params":{"token":"backgroundIndexProgress"}}
>>>
Content-Length: 38
{"id":0,"result":null,"jsonrpc":"2.0"}
<<<
Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"begin","percentage":0,"title":"indexing"}}}Content-Length: 141
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/1","percentage":0}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/100","percentage":0}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/100","percentage":0}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/100","percentage":0}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/100","percentage":0}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"1/100","percentage":1}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"1/100","percentage":1}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"2/100","percentage":2}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"2/100","percentage":2}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"3/100","percentage":3}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"3/100","percentage":3}}}Content-Length: 962
{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[{"code":"pp_file_not_found","message":"In included file: 'stdlib.h' file not found\n\nC:\\Users\\ltp\\AppData\\Local\\Arduino15\\packages\\rakwireless\\hardware\\nrf52\\0.21.20\\cores\\nRF5\\Arduino.h:6:10:\nnote: error occurred here","range":{"end":{"character":10,"line":0},"start":{"character":9,"line":0}},"severity":1,"source":"clang"},{"code":"unknown_typename_suggest","message":"Unknown type name 'time_t'; did you mean 'size_t'? (fix available)\n\nc:\\Users\\ltp\\AppData\\Local\\Programs\\Arduino IDE\\resources\\app\\node_modules\\arduino-ide-extension\\build\\lib\\clang\\12.0.0\\include\\stddef.h:46:23:\nnote: 'size_t' declared here","range":{"end":{"character":8,"line":46},"start":{"character":2,"line":46}},"severity":1,"source":"clang"}],"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server583445751/sketch/BasicSender.ino.cpp","version":1}}Content-Length: 1957
{"id":1,"jsonrpc":"2.0","result":[{"kind":13,"name":"PIN_SS","range":{"end":{"character":25,"line":14},"start":{"character":0,"line":14}},"selectionRange":{"end":{"character":20,"line":14},"start":{"character":14,"line":14}}},{"kind":13,"name":"delaySent","range":{"end":{"character":36,"line":18},"start":{"character":0,"line":18}},"selectionRange":{"end":{"character":32,"line":18},"start":{"character":23,"line":18}}},{"kind":13,"name":"sentNum","range":{"end":{"character":19,"line":19},"start":{"character":0,"line":19}},"selectionRange":{"end":{"character":15,"line":19},"start":{"character":8,"line":19}}},{"kind":13,"name":"DEFAULT_CONFIG","range":{"end":{"character":1,"line":33},"start":{"character":0,"line":21}},"selectionRange":{"end":{"character":37,"line":21},"start":{"character":23,"line":21}}},{"kind":12,"name":"setup","range":{"end":{"character":12,"line":36},"start":{"character":0,"line":36}},"selectionRange":{"end":{"character":10,"line":36},"start":{"character":5,"line":36}}},{"kind":12,"name":"transmit","range":{"end":{"character":15,"line":38},"start":{"character":0,"line":38}},"selectionRange":{"end":{"character":13,"line":38},"start":{"character":5,"line":38}}},{"kind":12,"name":"loop","range":{"end":{"character":11,"line":40},"start":{"character":0,"line":40}},"selectionRange":{"end":{"character":9,"line":40},"start":{"character":5,"line":40}}},{"kind":12,"name":"setup","range":{"end":{"character":1,"line":87},"start":{"character":0,"line":42}},"selectionRange":{"end":{"character":10,"line":42},"start":{"character":5,"line":42}}},{"kind":12,"name":"transmit","range":{"end":{"character":1,"line":110},"start":{"character":0,"line":96}},"selectionRange":{"end":{"character":13,"line":96},"start":{"character":5,"line":96}}},{"kind":12,"name":"loop","range":{"end":{"character":1,"line":119},"start":{"character":0,"line":112}},"selectionRange":{"end":{"character":9,"line":112},"start":{"character":5,"line":112}}}]}Content-Length: 36
{"id":2,"jsonrpc":"2.0","result":[]}
>>>
Content-Length: 229
{"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server583445751/sketch/BasicSender.ino.cpp"},"position":{"line":101,"character":39}},"id":3,"jsonrpc":"2.0"}
<<<
Content-Length: 38
{"id":3,"jsonrpc":"2.0","result":null}
>>>
Content-Length: 62
{"method":"$/cancelRequest","params":{"id":2},"jsonrpc":"2.0"}Content-Length: 229
{"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server583445751/sketch/BasicSender.ino.cpp"},"position":{"line":101,"character":39}},"id":4,"jsonrpc":"2.0"}
<<<
Content-Length: 38
{"id":4,"jsonrpc":"2.0","result":null}
>>>
Content-Length: 62
{"method":"$/cancelRequest","params":{"id":3},"jsonrpc":"2.0"}
<<<
Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"4/100","percentage":4}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"4/100","percentage":4}}}
>>>
Content-Length: 304
{"method":"textDocument/codeAction","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server583445751/sketch/BasicSender.ino.cpp"},"range":{"start":{"line":112,"character":13},"end":{"line":112,"character":13}},"context":{"diagnostics":[]}},"id":5,"jsonrpc":"2.0"}
<<<
Content-Length: 36
{"id":5,"jsonrpc":"2.0","result":[]}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"5/100","percentage":5}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"5/100","percentage":5}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"6/100","percentage":6}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"6/100","percentage":6}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"7/100","percentage":7}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"7/100","percentage":7}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"8/100","percentage":8}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"8/100","percentage":8}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"9/100","percentage":9}}}Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"9/100","percentage":9}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"10/100","percentage":10}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"10/100","percentage":10}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"11/100","percentage":11}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"11/100","percentage":11}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"12/100","percentage":12}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"12/100","percentage":12}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"13/100","percentage":13}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"13/100","percentage":13}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"14/100","percentage":14}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"14/100","percentage":14}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"15/100","percentage":15}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"15/100","percentage":15}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"16/100","percentage":16}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"16/100","percentage":16}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"17/100","percentage":17}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"17/100","percentage":17}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"18/100","percentage":18}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"18/100","percentage":18}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"19/100","percentage":19}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"19/100","percentage":19}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"20/100","percentage":20}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"20/100","percentage":20}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"21/100","percentage":21}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"21/100","percentage":21}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"22/100","percentage":22}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"22/100","percentage":22}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"23/100","percentage":23}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"23/100","percentage":23}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"24/100","percentage":24}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"24/100","percentage":24}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"25/100","percentage":25}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"25/100","percentage":25}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"26/100","percentage":26}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"26/100","percentage":26}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"27/100","percentage":27}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"27/100","percentage":27}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"28/100","percentage":28}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"28/100","percentage":28}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"29/100","percentage":29}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"29/100","percentage":29}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"30/100","percentage":30}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"30/100","percentage":30}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"31/100","percentage":31}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"31/100","percentage":31}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"32/100","percentage":32}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"32/100","percentage":32}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"33/100","percentage":33}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"33/100","percentage":33}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"34/100","percentage":34}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"34/100","percentage":34}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"35/100","percentage":35}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"35/100","percentage":35}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"36/100","percentage":36}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"36/100","percentage":36}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"37/100","percentage":37}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"37/100","percentage":37}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"38/100","percentage":38}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"38/100","percentage":38}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"39/100","percentage":39}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"39/100","percentage":39}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"40/100","percentage":40}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"40/100","percentage":40}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"41/100","percentage":41}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"41/100","percentage":41}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"42/100","percentage":42}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"42/100","percentage":42}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"43/100","percentage":43}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"43/100","percentage":43}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"44/100","percentage":44}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"44/100","percentage":44}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"45/100","percentage":45}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"45/100","percentage":45}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"46/100","percentage":46}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"46/100","percentage":46}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"47/100","percentage":47}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"47/100","percentage":47}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"48/100","percentage":48}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"48/100","percentage":48}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"49/100","percentage":49}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"49/100","percentage":49}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"50/100","percentage":50}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"50/100","percentage":50}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"51/100","percentage":51}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"51/100","percentage":51}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"52/100","percentage":52}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"52/100","percentage":52}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"53/100","percentage":53}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"53/100","percentage":53}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"54/100","percentage":54}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"54/100","percentage":54}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"55/100","percentage":55}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"55/100","percentage":55}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"56/100","percentage":56}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"56/100","percentage":56}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"57/100","percentage":57}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"57/100","percentage":57}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"58/100","percentage":58}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"58/100","percentage":58}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"59/100","percentage":59}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"59/100","percentage":59}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"60/100","percentage":60}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"60/100","percentage":60}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"61/100","percentage":61}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"61/100","percentage":61}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"62/100","percentage":62}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"62/100","percentage":62}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"63/100","percentage":63}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"63/100","percentage":63}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"64/100","percentage":64}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"64/100","percentage":64}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"65/100","percentage":65}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"65/100","percentage":65}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"66/100","percentage":66}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"66/100","percentage":66}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"67/100","percentage":67}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"67/100","percentage":67}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"68/100","percentage":68}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"68/100","percentage":68}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"69/100","percentage":69}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"69/100","percentage":69}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"70/100","percentage":70}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"70/100","percentage":70}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"71/100","percentage":71}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"71/100","percentage":71}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"72/100","percentage":72}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"72/100","percentage":72}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"73/100","percentage":73}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"73/100","percentage":73}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"74/100","percentage":74}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"74/100","percentage":74}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"75/100","percentage":75}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"75/100","percentage":75}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"76/100","percentage":76}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"76/100","percentage":76}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"77/100","percentage":77}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"77/100","percentage":77}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"78/100","percentage":78}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"78/100","percentage":78}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"79/100","percentage":79}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"79/100","percentage":79}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"80/100","percentage":80}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"80/100","percentage":80}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"81/100","percentage":81}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"81/100","percentage":81}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"82/100","percentage":82}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"82/100","percentage":82}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"83/100","percentage":83}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"83/100","percentage":83}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"84/100","percentage":84}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"84/100","percentage":84}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"85/100","percentage":85}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"85/100","percentage":85}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"86/100","percentage":86}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"86/100","percentage":86}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"87/100","percentage":87}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"87/100","percentage":87}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"88/100","percentage":88}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"88/100","percentage":88}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"89/100","percentage":89}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"89/100","percentage":89}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"90/100","percentage":90}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"90/100","percentage":90}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"91/100","percentage":91}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"91/100","percentage":91}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"92/100","percentage":92}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"92/100","percentage":92}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"93/100","percentage":93}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"93/100","percentage":93}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"94/100","percentage":94}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"94/100","percentage":94}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"95/100","percentage":95}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"95/100","percentage":95}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"96/100","percentage":96}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"96/100","percentage":96}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"97/100","percentage":97}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"98/100","percentage":98}}}Content-Length: 145
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"99/100","percentage":99}}}Content-Length: 107
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"end"}}}
>>>
Content-Length: 229
{"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server583445751/sketch/BasicSender.ino.cpp"},"position":{"line":100,"character":20}},"id":6,"jsonrpc":"2.0"}
<<<
Content-Length: 475
{"id":6,"jsonrpc":"2.0","result":{"contents":{"kind":"markdown","value":"### function `setTransmitData` \n\n---\n→ `void` \nParameters: \n- `const String & data`\n\nSets the transmission bytes inside the tx buffer of the DW1000 based on the input string \n@param [in] data the string to transmit \n\n---\n```cpp\n// In namespace DW1000Ng\nvoid setTransmitData(const String &data)\n```"},"range":{"end":{"character":27,"line":100},"start":{"character":12,"line":100}}}}
>>>
Content-Length: 228
{"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server583445751/sketch/BasicSender.ino.cpp"},"position":{"line":84,"character":35}},"id":7,"jsonrpc":"2.0"}
<<<
Content-Length: 38
{"id":7,"jsonrpc":"2.0","result":null}
>>>
Content-Length: 228
{"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server583445751/sketch/BasicSender.ino.cpp"},"position":{"line":99,"character":22}},"id":8,"jsonrpc":"2.0"}
<<<
Content-Length: 38
{"id":8,"jsonrpc":"2.0","result":null}
>>>
Content-Length: 228
{"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server583445751/sketch/BasicSender.ino.cpp"},"position":{"line":99,"character":26}},"id":9,"jsonrpc":"2.0"}
<<<
Content-Length: 38
{"id":9,"jsonrpc":"2.0","result":null}
>>>
Content-Length: 230
{"method":"textDocument/hover","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server583445751/sketch/BasicSender.ino.cpp"},"position":{"line":105,"character":19}},"id":10,"jsonrpc":"2.0"}
<<<
Content-Length: 285
{"id":10,"jsonrpc":"2.0","result":{"contents":{"kind":"markdown","value":"### function `isTransmitDone` \n\n---\n→ `boolean` \n\n---\n```cpp\n// In namespace DW1000Ng\nboolean isTransmitDone()\n```"},"range":{"end":{"character":33,"line":105},"start":{"character":19,"line":105}}}}
>>>
Content-Length: 59
{"method":"shutdown","params":null,"id":11,"jsonrpc":"2.0"}
<<<
Content-Length: 39
{"id":11,"jsonrpc":"2.0","result":null}
>>>
Content-Length: 47
{"method":"exit","params":null,"jsonrpc":"2.0"}<<< Read Error: EOF
Started logging.
>>>
Content-Length: 2159
{"method":"initialize","params":{"processId":37416,"rootPath":"C:\\Users\\ltp\\AppData\\Local\\Temp\\arduino-language-server801712847\\sketch","rootUri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server801712847/sketch","clientInfo":{"name":"vscode","version":"1.53.2"},"trace":"off","initializationOptions":{},"capabilities":{"workspace":{"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"]},"applyEdit":true,"symbol":{"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"executeCommand":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"workspaceFolders":true,"configuration":true},"textDocument":{"declaration":{"linkSupport":true},"definition":{"linkSupport":true},"implementation":{"linkSupport":true,"dynamicRegistration":true},"typeDefinition":{"linkSupport":true},"synchronization":{"willSave":true,"didSave":true,"willSaveWaitUntil":true},"documentSymbol":{"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"hierarchicalDocumentSymbolSupport":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}}},"completion":{"completionItem":{"documentationFormat":["markdown","plaintext"],"snippetSupport":true},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]},"contextSupport":true},"signatureHelp":{"signatureInformation":{"parameterInformation":{"labelOffsetSupport":true}}},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"hover":{"contentFormat":["markdown","plaintext"]},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true},"colorProvider":{"dynamicRegistration":true}},"window":{"workDoneProgress":true}}},"id":0,"jsonrpc":"2.0"}
<<<
Content-Length: 1671
{"id":0,"jsonrpc":"2.0","result":{"capabilities":{"astProvider":true,"callHierarchyProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","refactor","info"]},"compilationDatabase":{"automaticReload":true},"completionProvider":{"allCommitCharacters":[" ","\t","(",")","[","]","{","}","<",">",":",";",",","+","-","/","*","%","^","&","#","?",".","=","\"","'","|"],"resolveProvider":false,"triggerCharacters":[".","<",">",":","\"","/"]},"declarationProvider":true,"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":true,"documentLinkProvider":{"resolveProvider":false},"documentOnTypeFormattingProvider":{"firstTriggerCharacter":"\n","moreTriggerCharacter":[]},"documentRangeFormattingProvider":true,"documentSymbolProvider":true,"executeCommandProvider":{"commands":["clangd.applyFix","clangd.applyTweak"]},"hoverProvider":true,"implementationProvider":true,"memoryUsageProvider":true,"referencesProvider":true,"renameProvider":{"prepareProvider":true},"selectionRangeProvider":true,"semanticTokensProvider":{"full":{"delta":true},"legend":{"tokenModifiers":[],"tokenTypes":["variable","variable","parameter","function","method","function","property","variable","class","enum","enumMember","type","dependent","dependent","namespace","typeParameter","concept","type","macro","comment"]},"range":false},"signatureHelpProvider":{"triggerCharacters":["(",","]},"textDocumentSync":{"change":2,"openClose":true,"save":true},"typeHierarchyProvider":true,"workspaceSymbolProvider":true},"serverInfo":{"name":"clangd","version":"clangd version 12.0.0 (https://github.com/llvm/llvm-project e841bd5f335864b8c4d81cbf4df08460ef39f2ae)"}}}
>>>
Content-Length: 52
{"method":"initialized","params":{},"jsonrpc":"2.0"}Content-Length: 3991
{"method":"textDocument/didOpen","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server801712847/sketch/BasicSender.ino.cpp","languageId":"cpp","version":1,"text":"#include \u003cArduino.h\u003e\n#line 1 \"D:\\\\RAK-Work\\\\20210707\\\\RAK13801\\\\RAK13801-UWB-Library\\\\examples\\\\BasicSender\\\\BasicSender.ino\"\n/**\n @file BasicSender.ino\n @author rakwireless.com\n @brief UWB transmit sender\n @version 0.1\n @date 2022-1-28\n @copyright Copyright (c) 2020\n**/\n\n#include \u003cSPI.h\u003e\n#include \u003cDW1000Ng.hpp\u003e\n\nconst uint8_t PIN_SS = SS; // spi select pin\n\n\n// DEBUG packet sent status and count\nvolatile unsigned long delaySent = 0;\nint16_t sentNum = 0; // todo check int type\n\ndevice_configuration_t DEFAULT_CONFIG = {\n false,\n true,\n true,\n true,\n false,\n SFDMode::STANDARD_SFD,\n Channel::CHANNEL_5,\n DataRate::RATE_850KBPS,\n PulseFrequency::FREQ_16MHZ,\n PreambleLength::LEN_256,\n PreambleCode::CODE_3\n};\n\n#line 34 \"D:\\\\RAK-Work\\\\20210707\\\\RAK13801\\\\RAK13801-UWB-Library\\\\examples\\\\BasicSender\\\\BasicSender.ino\"\nvoid setup();\n#line 88 \"D:\\\\RAK-Work\\\\20210707\\\\RAK13801\\\\RAK13801-UWB-Library\\\\examples\\\\BasicSender\\\\BasicSender.ino\"\nvoid transmit();\n#line 104 \"D:\\\\RAK-Work\\\\20210707\\\\RAK13801\\\\RAK13801-UWB-Library\\\\examples\\\\BasicSender\\\\BasicSender.ino\"\nvoid loop();\n#line 34 \"D:\\\\RAK-Work\\\\20210707\\\\RAK13801\\\\RAK13801-UWB-Library\\\\examples\\\\BasicSender\\\\BasicSender.ino\"\nvoid setup() {\n pinMode(WB_IO2, OUTPUT);\n digitalWrite(WB_IO2, HIGH); //Turn on the power switch\n delay(300);\n time_t serial_timeout = millis();\n // DEBUG monitoring\n Serial.begin(115200);\n while (!Serial)\n {\n if ((millis() - serial_timeout) \u003c 5000)\n {\n delay(100);\n }\n else\n {\n break;\n }\n }\n Serial.println(F(\"### DW1000Ng-arduino-sender-test ###\"));\n // initialize the driver\n DW1000Ng::initializeNoInterrupt(PIN_SS);\n Serial.println(F(\"DW1000Ng initialized ...\"));\n\n DW1000Ng::applyConfiguration(DEFAULT_CONFIG);\n\t//DW1000Ng::applyInterruptConfiguration(DEFAULT_INTERRUPT_CONFIG);\n\n DW1000Ng::setDeviceAddress(5);\n DW1000Ng::setNetworkId(10);\n\n DW1000Ng::setAntennaDelay(16436);\n Serial.println(F(\"Committed configuration ...\"));\n // DEBUG chip info and registers pretty printed\n char msg[128];\n DW1000Ng::getPrintableDeviceIdentifier(msg);\n Serial.print(\"Device ID: \"); Serial.println(msg);\n DW1000Ng::getPrintableExtendedUniqueIdentifier(msg);\n Serial.print(\"Unique ID: \"); Serial.println(msg);\n DW1000Ng::getPrintableNetworkIdAndShortAddress(msg);\n Serial.print(\"Network ID \u0026 Device Address: \"); Serial.println(msg);\n DW1000Ng::getPrintableDeviceMode(msg);\n Serial.print(\"Device mode: \"); Serial.println(msg);\n // attach callback for (successfully) sent messages\n //DW1000Ng::attachSentHandler(handleSent);\n // start a transmission\n transmit();\n}\n\n/*\nvoid handleSent() {\n // status change on sent success\n sentAck = true;\n}\n*/\n\nvoid transmit() {\n // transmit some data\n Serial.print(\"Transmitting packet ... #\"); Serial.println(sentNum);\n String msg = \"Hello DW1000Ng, it's #\"; msg += sentNum;\n DW1000Ng::setTransmitData(msg);\n // delay sending the message for the given amount\n delay(1000);\n DW1000Ng::startTransmit(TransmitMode::IMMEDIATE);\n delaySent = millis();\n while(!DW1000Ng::isTransmitDone()) {\n\n }\n sentNum++;\n DW1000Ng::clearTransmitStatus();\n}\n\nvoid loop() {\n transmit();\n // update and print some information about the sent message\n Serial.print(\"ARDUINO delay sent [ms] ... \"); Serial.println(millis() - delaySent);\n uint64_t newSentTime = DW1000Ng::getTransmitTimestamp();\n Serial.print(\"Processed packet ... #\"); Serial.println(sentNum);\n Serial.println();\n}\n\n"}},"jsonrpc":"2.0"}Content-Length: 199
{"method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server801712847/sketch/BasicSender.ino.cpp"}},"id":1,"jsonrpc":"2.0"}
<<<
Content-Length: 111
{"id":0,"jsonrpc":"2.0","method":"window/workDoneProgress/create","params":{"token":"backgroundIndexProgress"}}
>>>
Content-Length: 304
{"method":"textDocument/codeAction","params":{"textDocument":{"uri":"file:///C:/Users/ltp/AppData/Local/Temp/arduino-language-server801712847/sketch/BasicSender.ino.cpp"},"range":{"start":{"line":112,"character":13},"end":{"line":112,"character":13}},"context":{"diagnostics":[]}},"id":2,"jsonrpc":"2.0"}Content-Length: 38
{"id":0,"result":null,"jsonrpc":"2.0"}
<<<
Content-Length: 143
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"begin","percentage":0,"title":"indexing"}}}Content-Length: 141
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/1","percentage":0}}}Content-Length: 142
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/36","percentage":0}}}Content-Length: 142
{"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"0/36","percentage":0}}}Content-Length: 142