-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #234 from RealEstateCore/dev/cbupp/controllers-and…
…-gateways Creating a BACnetAndModbusController and a IoTHubConnectionParameter
- Loading branch information
Showing
10 changed files
with
168 additions
and
124 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
Doc/Point/Parameter/GatewayConnection-/GatewayConnectionParameter.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
[Index](../../../index.md) > [Point](../../Point.md) > [Parameter](../Parameter.md) > [GatewayConnectionParameter](#) | ||
# GatewayConnectionParameter | ||
|
||
**Display name:** Gateway Connection Parameter<br /> | ||
**DTMI:** dtmi:org:w3id:rec:GatewayConnectionParameter;1 | ||
|
||
--- | ||
|
||
## Child interfaces | ||
* [IoTHubConnectionParameter](IoTHubConnectionParameter.md) | ||
|
||
--- | ||
|
||
## Relationships | ||
|
||
### Inherited Relationships | ||
* **[Point](../../Point.md):** isPointOf | ||
|
||
--- | ||
|
||
## Properties | ||
|
||
### Inherited Properties | ||
* **[Parameter](../Parameter.md):** lastKnownValue | ||
* **[Point](../../Point.md):** aggregate, customProperties, customTags, hasQuantity, hasSubstance, identifiers, name | ||
|
||
--- | ||
|
||
## Target Of | ||
### General | ||
* [Portfolio](../../../Collection/Portfolio.md).includes | ||
* [PointOfInterest](../../../Information/PointOfInterest.md).objectOfInterest | ||
* [Agent](../../../Agent/Agent.md).owns | ||
* [Space](../../../Space/Space.md).isLocationOf | ||
* [Lease](../../../Event/Lease.md).leaseOf | ||
* [Point](../../Point.md).isPointOf | ||
* [Document](../../../Information/Document/Document.md).documentTopic | ||
* [Document](../../../Information/Document/Document.md).url | ||
* [ServiceObject](../../../Information/ServiceObject/ServiceObject.md).relatedTo | ||
* [Architecture](../../../Space/Architecture/Architecture.md).isFedBy | ||
* [Equipment](../../../Asset/Equipment/Equipment.md).feeds | ||
* [Equipment](../../../Asset/Equipment/Equipment.md).isFedBy | ||
* [Meter](../../../Asset/Equipment/Meter/Meter.md).meters | ||
### Inherited | ||
* [ActuationEvent](../../../Event/Point-/ActuationEvent.md).targetPoint | ||
* [Architecture](../../../Space/Architecture/Architecture.md).hasPoint | ||
* [Asset](../../../Asset/Asset.md).hasPoint | ||
* [ExceptionEvent](../../../Event/Point-/ExceptionEvent.md).sourcePoint | ||
* [ObservationEvent](../../../Event/Point-/ObservationEvent/ObservationEvent.md).sourcePoint | ||
* [ServiceObject](../../../Information/ServiceObject/ServiceObject.md).producedBy |
49 changes: 49 additions & 0 deletions
49
Doc/Point/Parameter/GatewayConnection-/IoTHubConnectionParameter.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
[Index](../../../index.md) > [Point](../../Point.md) > [Parameter](../Parameter.md) > [GatewayConnectionParameter](GatewayConnectionParameter.md) > [IoTHubConnectionParameter](#) | ||
# IoTHubConnectionParameter | ||
|
||
**Display name:** IoT Hub Connection Parameter<br /> | ||
**DTMI:** dtmi:org:w3id:rec:IoTHubConnectionParameter;1 | ||
|
||
--- | ||
|
||
## Relationships | ||
|
||
### Inherited Relationships | ||
* **[Point](../../Point.md):** isPointOf | ||
|
||
--- | ||
|
||
## Properties | ||
|
||
|Name|Display name|Description|Schema|Writable| | ||
|-|-|-|-|-| | ||
|deviceId|**en**: Device ID|**en**: The Device ID of the device connected to Azure IoT Hub|string|True| | ||
|hostname|**en**: Hostname|**en**: The Hostname of the Azure IoT Hub the gateway is connected to|string|True| | ||
### Inherited Properties | ||
* **[Parameter](../Parameter.md):** lastKnownValue | ||
* **[Point](../../Point.md):** aggregate, customProperties, customTags, hasQuantity, hasSubstance, identifiers, name | ||
|
||
--- | ||
|
||
## Target Of | ||
### General | ||
* [Portfolio](../../../Collection/Portfolio.md).includes | ||
* [PointOfInterest](../../../Information/PointOfInterest.md).objectOfInterest | ||
* [Agent](../../../Agent/Agent.md).owns | ||
* [Space](../../../Space/Space.md).isLocationOf | ||
* [Lease](../../../Event/Lease.md).leaseOf | ||
* [Point](../../Point.md).isPointOf | ||
* [Document](../../../Information/Document/Document.md).documentTopic | ||
* [Document](../../../Information/Document/Document.md).url | ||
* [ServiceObject](../../../Information/ServiceObject/ServiceObject.md).relatedTo | ||
* [Architecture](../../../Space/Architecture/Architecture.md).isFedBy | ||
* [Equipment](../../../Asset/Equipment/Equipment.md).feeds | ||
* [Equipment](../../../Asset/Equipment/Equipment.md).isFedBy | ||
* [Meter](../../../Asset/Equipment/Meter/Meter.md).meters | ||
### Inherited | ||
* [ActuationEvent](../../../Event/Point-/ActuationEvent.md).targetPoint | ||
* [Architecture](../../../Space/Architecture/Architecture.md).hasPoint | ||
* [Asset](../../../Asset/Asset.md).hasPoint | ||
* [ExceptionEvent](../../../Event/Point-/ExceptionEvent.md).sourcePoint | ||
* [ObservationEvent](../../../Event/Point-/ObservationEvent/ObservationEvent.md).sourcePoint | ||
* [ServiceObject](../../../Information/ServiceObject/ServiceObject.md).producedBy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
OntologyDecisionRecords/ODR 002 GatewayConnectionParameter.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# ODR 002: GatewayConnectionParameter | ||
|
||
## Context | ||
|
||
An IoT [Gateway](../Doc/Asset/Equipment/ICT-/Gateway.md) is a device responsible for handling transfer data to different communication protocols. A modern IoT gateway enables bidirectional communication. | ||
|
||
In the case that a cloud service needs to send a cloud-to-device message to the gateway, the connection information needed to accomplish this could be represented as a [Parameter](../Doc/Point/Parameter/Parameter.md). | ||
|
||
## Decisions | ||
|
||
1. We will create a [GatewayConnectionParameter](../Doc/Point/Parameter/GatewayConnection-/GatewayConnectionParameter.md) that uses the REC DTMI `dtmi:org:w3id:rec:GatewayConnectionParameter;1`. | ||
|
||
1. We will NOT model security credentials in the connection parameters; it is recommended that a key vault, or similar technology, is used to store credentials. | ||
|
||
## Consequences | ||
|
||
Application services will need to implement application logic to support the different model extensions. | ||
|
||
Application services will be responsible for securing the appropriate authorization to send messages. The GatewayConnectionParameters just provide configuration parameters. |
12 changes: 0 additions & 12 deletions
12
Source/DTDLv2/RealEstateCore/Asset/Equipment/ICT-/Controller/BACnet-.json
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
Source/DTDLv2/RealEstateCore/Asset/Equipment/ICT-/Controller/Modbus-.json
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
Source/DTDLv2/RealEstateCore/Point/Parameter/Gateway-/GatewayConnectionParameter.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"@id": "dtmi:org:w3id:rec:GatewayConnectionParameter;1", | ||
"@type": "Interface", | ||
"displayName": "Gateway Connection Parameter", | ||
"extends": "dtmi:org:brickschema:schema:Brick:Parameter;1", | ||
"@context": [ | ||
"dtmi:dtdl:context;2" | ||
] | ||
} |
35 changes: 35 additions & 0 deletions
35
Source/DTDLv2/RealEstateCore/Point/Parameter/Gateway-/IoT-/IoTHubConnectionParameter.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"@id": "dtmi:org:w3id:rec:IoTHubConnectionParameter;1", | ||
"@type": "Interface", | ||
"displayName": "IoT Hub Connection Parameter", | ||
"extends": "dtmi:org:w3id:rec:GatewayConnectionParameter;1", | ||
"contents": [ | ||
{ | ||
"@type": "Property", | ||
"schema": "string", | ||
"description": { | ||
"en": "The Device ID of the device connected to Azure IoT Hub" | ||
}, | ||
"displayName": { | ||
"en": "Device ID" | ||
}, | ||
"name": "deviceId", | ||
"writable": true | ||
}, | ||
{ | ||
"@type": "Property", | ||
"schema": "string", | ||
"description": { | ||
"en": "The Hostname of the Azure IoT Hub the gateway is connected to" | ||
}, | ||
"displayName": { | ||
"en": "Hostname" | ||
}, | ||
"name": "hostname", | ||
"writable": true | ||
} | ||
], | ||
"@context": [ | ||
"dtmi:dtdl:context;2" | ||
] | ||
} |