samples: net: cloud: Move cloud based samples

MQTT Azure and Google IoT samples are based on cloud
infrastructure. It would be nice to place all cloud
based samples in one single folder.

Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
This commit is contained in:
Ravi kumar Veeramally 2019-12-16 11:52:53 +02:00 committed by Jukka Rissanen
commit 523a88ea4f
25 changed files with 14 additions and 8 deletions

View file

@ -16,7 +16,7 @@ currently is able to
- Send/Receive keep alive / pings from cloud server - Send/Receive keep alive / pings from cloud server
The source code for this sample application can be found at: The source code for this sample application can be found at:
:zephyr_file:`samples/net/google_iot_mqtt`. :zephyr_file:`samples/net/cloud/google_iot_mqtt`.
Requirements Requirements
************ ************
@ -32,7 +32,7 @@ ECDSA certs/keys are required to authenticate to the Google IOT Cloud.
The application includes a key creation script. The application includes a key creation script.
Run the ``create_keys.py`` script in the Run the ``create_keys.py`` script in the
``samples/net/google_iot_mqtt/src/private_info/`` directory. ``samples/net/cloud/google_iot_mqtt/src/private_info/`` directory.
Users will also be required to configure the following Kconfig options Users will also be required to configure the following Kconfig options
based on their Google Cloud IOT project: based on their Google Cloud IOT project:

View file

@ -0,0 +1,8 @@
sample:
description: MQTT sample app to Google IoT cloud
name: google_iot_mqtt
tests:
sample.net.cloud.google_iot_mqtt:
harness: net
platform_whitelist: frdm_k64f
tags: net mqtt cloud

View file

@ -31,7 +31,7 @@ Building and Running
This application has been built and tested on the NXP FRDMK64F. This application has been built and tested on the NXP FRDMK64F.
Certs are required to authenticate to the Azure Cloud IoT hub. Certs are required to authenticate to the Azure Cloud IoT hub.
Current certs in :zephyr_file:`samples/net/mqtt_azure/src/digicert.cer` are Current certs in :zephyr_file:`samples/net/cloud/mqtt_azure/src/digicert.cer` are
copied from `<https://github.com/Azure/azure-iot-sdk-c/blob/master/certs/certs.c>`_ copied from `<https://github.com/Azure/azure-iot-sdk-c/blob/master/certs/certs.c>`_
Configure the following Kconfig options based on your Azure Cloud IoT Hub Configure the following Kconfig options based on your Azure Cloud IoT Hub
@ -56,10 +56,10 @@ the sample behind a proxy:
- SAMPLE_SOCKS_PORT - Port number of SOCKS5 Proxy server - SAMPLE_SOCKS_PORT - Port number of SOCKS5 Proxy server
On your Linux host computer, open a terminal window, locate the source code On your Linux host computer, open a terminal window, locate the source code
of this sample application (i.e., :zephyr_file:`samples/net/mqtt_azure`) and type: of this sample application (i.e., :zephyr_file:`samples/net/cloud/mqtt_azure`) and type:
.. zephyr-app-commands:: .. zephyr-app-commands::
:zephyr-app: samples/net/mqtt_azure :zephyr-app: samples/net/cloud/mqtt_azure
:board: frdm_k64f :board: frdm_k64f
:conf: "prj.conf <overlay.conf>" :conf: "prj.conf <overlay.conf>"
:goals: build flash :goals: build flash

View file

@ -2,7 +2,7 @@ sample:
description: MQTT sample app to Azure cloud description: MQTT sample app to Azure cloud
name: mqtt-azure name: mqtt-azure
tests: tests:
sample.net.mqtt_azure: sample.net.cloud.mqtt_azure:
harness: net harness: net
platform_whitelist: sam_e70_xplained frdm_k64f qemu_x86 platform_whitelist: sam_e70_xplained frdm_k64f qemu_x86
tags: net mqtt cloud tags: net mqtt cloud

View file

@ -1,2 +0,0 @@
sample:
name: Full stack sample