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:
- 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?
- add jwt in header file (for auth in GCP IOT Core)
- encrypt data (otherwise GCP will not accept it)
- send data
- profit
Do you might have some hints for me to get started?
Best,
Tim