#!/bin/bash # # Copyright (c) 2018 # Mainflux # # SPDX-License-Identifier: Apache-2.0 # ### # Core Metadata ### printf "> Provisioning Addressibles\n" # Addressable for the Device Service curl http://localhost:48081/api/v1/addressable -X POST -s -S -d @- < Provisioning Value Descriptors\n" # Value Descriptor for `people count` curl http://localhost:48080/api/v1/valuedescriptor -X POST -s -S -d @- < Creating Device Profile\n" # N.B camera_monitor_profile.yml file can be downloaded from https://docs.edgexfoundry.org/Ch-WalkthroughDeviceProfile.html curl http://localhost:48081/api/v1/deviceprofile/uploadfile -X POST -s -S -F "file=@./camera_monitor_profile.yml" ### # Create Device Service ### printf "\n> Creating Device Service\n" curl http://localhost:48081/api/v1/deviceservice -X POST -s -S -d @- < Creating Device\n" curl http://localhost:48081/api/v1/device -X POST -s -S -d @- <