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

CoAP DTLS to Google Cloud Proxy using nRF9160 DK

Hi,

my goal is to send data to the Google Cloud Platform using CoAP.

I found this example: 

https://infocenter.nordicsemi.com/topic/sdk_tz_v3.1.0/thread_google_iot_coap.html

and also some source code on github:

https://github.com/LuDuda/google-iot-thread/blob/master/examples/thread/google_iot_coap/main.c

I did set up the proxy server running on the compute engine. I now have my public IP to where I want to send the data. So far so good.

My Problem now is that I'm quiet unsure where to start. I'm not sure if there is a easy way to use the CoAP_client and just send data to my public IP instead of the californium example server.

I also tried to add the openthread libs from the github page to the coap_client example and use it as an guide. Unfortunately I'm not able to include them. The instructions with include them using the options>preprocessor is not working. Just pasting them in the project folder also does not work.

My guess is: 

  1. Change californium server to my server (right now it's using DNS resolve which would not be needed? and I would need to use the NAT64 ip, right?
  2. add jwt in header file (for auth in GCP IOT Core)
  3. encrypt data (otherwise GCP will not accept it)
  4. send data
  5. profit

Do you might have some hints for me to get started?

Best,

Tim

Parents Reply Children
No Data
Related