This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Getting Thread+CoAP Google Cloud IoT Example working with Californium

Continuing the discussion that was documented here: 

https://devzone.nordicsemi.com/f/nordic-q-a/64691/how-to-use-the-latest-version-of-californium

1) I modified the resources a bit to better reflect our use case. However, can you give some pointers on what's the proper use of the arguments for the nRF5 console java client? What I received from the cf-secure output is the following

19:45:32.504 INFO [MessageTracer]: DTLS([fe80:0:0:0:d832:d8c5:ecf5:6a8a%10]:5694,ID:A5AA854700) ==> req CON-PUT MID=29594, Token=3436423F656D00B0, OptionSet={"Uri-Path":["tempsensor","temp,"], "Content-Format":"text/plain"}, "30"
19:45:32.511 INFO [ServerMessageDeliverer]: did not find resource /tempsensor/temp, requested by /fe80:0:0:0:d832:d8c5:ecf5:6a8a%10:5694
19:45:32.516 INFO [MessageTracer]: DTLS([fe80:0:0:0:d832:d8c5:ecf5:6a8a%10]:5694,ID:A5AA854700) <== res ACK-4.04 MID=29594, Token=3436423F656D00B0, OptionSet={}, no payload

How do I use PUT and GET using Nrf5xConsoleClient?

PUT coaps://[fe80::d832:d8c5:ecf5:6a8a]:5684/tempsensor/temp, 30

Is this correct for PUT?

2) Can you give some pointers to get the Thread+CoAP Cloud IoT example in the nRF5 SDK for Thread working with Californium? Is it better to start with the github repo for the CoAP Proxy demo? But I think this was using an old version of Californium. Not sure how to reconcile the two.

Thanks!

Parents
  • Hi,

     

    How do I use PUT and GET using Nrf5xConsoleClient?

     You can run  the client without any arguments to get some documentation and examples on how it can be used.

    Your suggestion is almost right, but the arguments are separated by a space, not a comma. So unless you try to put something to 'temp,', you should remove the comma.

     

    2) Can you give some pointers to get the Thread+CoAP Cloud IoT example in the nRF5 SDK for Thread working with Californium?

     I haven't used Thread much myself, so I will need some time set this up and test myself.

    Best regards,

    Didrik

  • I appreciate all the efforts and replies. We will probably revisit this with the nRF Connect SDK - LWM2M client and Thread overlay. I could build it, but I am not sure how to make it use the Thread overlay. I'm also wondering how this LWM2M Client example can connect to ARM Pelion. 

Reply Children
No Data
Related