Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
oisp legacy dependency removed by removing cid:componenet id/alias check
Browse files Browse the repository at this point in the history
- SparkplugB enabled by default at mqqt-gw
- Removed old rest API based kafka publish on topic  metric
  • Loading branch information
yshashix authored and oguzcankirmemis committed Sep 28, 2023
1 parent 56872e7 commit 316a878
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 1,302 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,14 @@ The Bridge also handles the auth, acl and load-balancing for MQTT and MQTT with
```

2. SpB-mqttgw uses different name of kafka client to get distinguished (ClientId: spBFrontend-metrics)
3. CID is used as alias, as sparkplugB standard suggest unique id as alias in data metric element.
3. SparkplugB standard message with data metric element.
Data message looks like below:
``` bash
var cid = "0c574252-31d5-4b76-bce6-53f2c56b544d";

var DataMessage = {
timestamp: 12345,
metrics: [{
name : "temp",
alias : cid,
timestamp : 12345,
dataType : "float",
value: 123
Expand Down Expand Up @@ -102,7 +101,6 @@ Eg. of SpB message payload containing NGSI-LD format Relationship Data:
"metrics":
[{
"name":"Relationship/https://industry-fusion.com/types/v0.9/hasFilter",
"alias":"fbb3b7cd-a5ff-491b-ad61-d43edf513b7a",
"timestamp":1655974018777,
"dataType":"string",
"value":"urn:filter:1"}],
Expand Down Expand Up @@ -132,7 +130,6 @@ Eg. of SpB Converted into NGSI-LD Relationship data format:
"metrics":
[{
"name":"Property/https://industry-fusion.com/types/v0.9/state",
"alias":"fbb3b7cd-a5ff-491b-ad61-d43edf513b7a",
"timestamp":1655974018777,
"dataType":"string",
"value":"https://industry-fusion.com/types/v0.9/state_OFF"}],
Expand Down
298 changes: 0 additions & 298 deletions api/data.ingestion.js

This file was deleted.

Loading

0 comments on commit 316a878

Please sign in to comment.