Skip to content

Commit 1d36e46

Browse files
authored
Merge pull request #13 from oracle-devrel/iot
Iot
2 parents ff3ddcd + 917223c commit 1d36e46

21 files changed

Lines changed: 75300 additions & 16 deletions

IoTSonnenUploader/DigitalTwin/AnalyticsDBAccess.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export IDCS_DOMAIN_NAME=<the name of your IDCS instance, e.g. iotdomain or Defau
2525
export IDCS_IOT_GROUP_NAME=<the name of the IDCS group you created, this could be the same one you used for ORDS if you've set that up>
2626
export OCI_TENANCY_OCID=`oci iam compartment list --query 'data[?contains("compartment-id", \`.tenancy\`)]."compartment-id" | [0]' --raw-output`
2727

28-
export OCI_TENANCY_OCID=`oci iam compartment list --query 'data[?contains("compartment-id", \`.tenancy\`)]."compartment-id" | [0]' --raw-output`
2928

3029

3130
oci iot domain configure-direct-data-access --iot-domain-id $IOT_DOMAIN_OCID --db-allow-listed-identity-group-names '["'$OCI_TENANCY_OCID':'$IDCS_DOMAIN_NAME'/'$IDCS_IOT_GROUP_NAME'", "'$OCI_TENANCY_OCID':OracleIdentityCloudService/Domain_Specialists"]' --wait-for-state SUCCEEDED --wait-for-state FAILED

IoTSonnenUploader/DigitalTwin/Instructions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ While it's running look at the output and check that the CommandDemoPlaceholder
298298
oci iot digital-twin-instance get-content --digital-twin-instance-id $DIGITAL_TWIN_INSTANCE_OCID | jq -r '.data'
299299

300300
Let's upload the command to the IOT service
301-
oci iot digital-twin-instance invoke-raw-json-command --digital-twin-instance-id $DIGITAL_TWIN_INSTANCE_OCID --request-endpoint house/sonnencommand/tims --request-data '{"commandIdentifier": "SET_PLACEHOLDER", "data":"I am another placeholder"}' --request-data-content-type application/json --request-duration PT10M --response-duration PT10M --response-endpoint house/sonnencommandresponse/tims
301+
oci iot digital-twin-instance invoke-raw-json-command --digital-twin-instance-id $DIGITAL_TWIN_INSTANCE_OCID --request-endpoint house/sonnencommand/$DEVICE_ID --request-data '{"commandIdentifier": "SET_PLACEHOLDER", "data":"I am another placeholder"}' --request-data-content-type application/json --request-duration PT10M --response-duration PT10M --response-endpoint house/sonnencommandresponse/$DEVICE_ID
302302

303303
you will see the client receive the command and process it and send the response, you can also check the database contents using SQL developer :
304304
select * from RAW_COMMAND_DATA order by time_created desc

IoTSonnenUploader/DigitalTwin/ORDSDataAccess.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ export IOT_ORDS_OAUTH_ID=<Client id from OAUTH Integrated application config pag
1313
export IOT_ORDS_OAUTH_SECRET=<Client secret from OAUTH Integrated application config page - shown at step 18/19>
1414
export IOT_IDENTITY_DOMAIN_HOST=<From the identity details at step 31>
1515

16+
#assuming the above all worked then you can configure the IoT to use the IDCS
17+
oci iot domain configure-ords-data-access --iot-domain-id $IOT_DOMAIN_OCID --db-allowed-identity-domain-host $IOT_IDENTITY_DOMAIN_HOST --wait-for-state SUCCEEDED --wait-for-state FAILED
18+
1619
# this uses the above to get the token and so on
1720
export IOT_IDENTITY_DOMAIN_HOST_SHORT=`echo $IOT_IDENTITY_DOMAIN_HOST | tr '.' ' ' | awk '{print $1}'`
1821
export IOT_IDENTITY_DOMAIN_URL=https://$IOT_IDENTITY_DOMAIN_HOST:443/oauth2/v1/token

IoTSonnenUploader/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ SOFTWARE. -->
138138
<artifactId>lombok</artifactId>
139139
<!--<version>${lombok.version}</version>-->
140140
</dependency>
141+
<dependency>
142+
<groupId>com.oracle.demos.experiential.addons</groupId>
143+
<artifactId>gamevideouriuploader</artifactId>
144+
<version>0.2.4</version>
145+
</dependency>
141146
</dependencies>
142147
<build>
143148
<plugins>

IoTSonnenUploader/saveddata/configuration-captureddata-Start-Dec.txt

Lines changed: 275 additions & 0 deletions
Large diffs are not rendered by default.

IoTSonnenUploader/saveddata/configuration-captureddata-demo.txt

Lines changed: 685 additions & 0 deletions
Large diffs are not rendered by default.

IoTSonnenUploader/saveddata/configuration-captureddata.txt

Lines changed: 4830 additions & 0 deletions
Large diffs are not rendered by default.

IoTSonnenUploader/saveddata/status-captureddata-Start-Dec.txt

Lines changed: 3328 additions & 0 deletions
Large diffs are not rendered by default.

IoTSonnenUploader/saveddata/status-captureddata-demo.txt

Lines changed: 8156 additions & 0 deletions
Large diffs are not rendered by default.

IoTSonnenUploader/saveddata/status-captureddata.txt

Lines changed: 57059 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)