Hi, I'm new here and just start to study LWM2M. :)
I build the bootstap server and test by client with -b . But seems the bootstrap server keep saying 4.00 (COAP_400_BAD_REQUEST).
I did not modify bootstrap_server.ini and I guess it will return server object 2 and 3. After client get server and security info, the client will connect LWM2M server ?
Thanks.
ricky@ricky-VirtualBox:~/lwm2m/wakaama_b$ ./bootstrap_server
LWM2M Bootstrap Server now listening on port 5685.
> 31 bytes received from [127.0.0.1]:56830
44 02 44 6C 6C 44 CC E7 B2 62 73 4D 05 65 70 3D D.DllD...bsM.ep=
74 65 73 74 6C 77 6D 32 6D 63 6C 69 65 6E 74 testlwm2mclient
Parsed: ver 1, type 0, tkl 4, code 2, mid 17516
Content type: 0
Payload:
Bootstrap request from "testlwm2mclient"
Sending 8 bytes to [0.0.0.0]:56830
64 44 44 6C 6C 44 CC E7 dDDllD..
Sending 8 bytes to [0.0.0.0]:56830
44 04 35 C2 C2 35 CC E7 D.5..5..
8 bytes received from [127.0.0.1]:56830
64 42 35 C2 C2 35 CC E7 dB5..5..
Parsed: ver 1, type 2, tkl 4, code 2.02, mid 13762
Content type: 0
Payload:
Received status 2.02 (COAP_202_DELETED) for URI / from endpoint testlwm2mclient.
Sending 55 bytes to [0.0.0.0]:56830
44 03 35 C3 C3 35 CC E7 B1 30 01 32 FF C8 00 1E D.5..5...0.2....
63 6F 61 70 3A 2F 2F 6C 65 73 68 61 6E 2E 65 63 coap://
leshan.ec00 C1 0A 02 C1 02 03 .......
8 bytes received from [127.0.0.1]:56830
64 44 35 C3 C3 35 CC E7 dD5..5..
Parsed: ver 1, type 2, tkl 4, code 2.04, mid 13763
Content type: 0
Payload:
Received status 2.04 (COAP_204_CHANGED) for URI /0/2 from endpoint testlwm2mclient.
Sending 26 bytes to [0.0.0.0]:56830
44 03 35 C4 C4 35 CC E7 B1 31 01 32 FF C1 00 02 D.5..5...1.2....
C2 01 01 2C C1 06 00 C1 07 55 ...,.....U
8 bytes received from [127.0.0.1]:56830
64 80 35 C4 C4 35 CC E7 d.5..5..
Parsed: ver 1, type 2, tkl 4, code 4.00, mid 13764
Content type: 0
Payload:
Received status 4.00 (COAP_400_BAD_REQUEST) for URI /1/2 from endpoint testlwm2mclient.