-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: Change configuration and device toml files to yaml
BREAKING CHANGE: Configuration and device files now use yaml closes: #552 Signed-off-by: Marc-Philippe Fuller <marc-philippe.fuller@intel.com>
- Loading branch information
1 parent
c80097c
commit 3944987
Showing
8 changed files
with
127 additions
and
125 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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,59 @@ | ||
MaxEventSize: 0 # value 0 unlimit the maximum event size that can be sent to message bus or core-data | ||
|
||
Writable: | ||
LogLevel: "INFO" | ||
# InsecureSecrets are required for when Redis is used for message bus | ||
InsecureSecrets: | ||
MQTT: | ||
SecretName: "credentials" | ||
SecretData: | ||
username: "" | ||
password: "" | ||
|
||
Service: | ||
Host: "localhost" | ||
Port: 59982 | ||
StartupMsg: "device mqtt started" | ||
# uncomment when running from command-line in hybrid mode with -cp -o flags | ||
# Clients: | ||
# core-metadata: | ||
# Host: "localhost" | ||
# Registry: | ||
# Host: "localhost" | ||
|
||
MessageBus: | ||
# Host: localhost # uncomment when running from command-line in hybrid mode | ||
Optional: | ||
# Default MQTT & NATS Specific options that need to be here to enable environment variable overrides of them | ||
ClientId: "device-mqtt" | ||
|
||
MQTTBrokerInfo: | ||
Schema: "tcp" | ||
Host: "localhost" | ||
Port: 1883 | ||
Qos: 0 | ||
KeepAlive: 3600 | ||
ClientId: "device-mqtt" | ||
|
||
CredentialsRetryTime: 120 # Seconds | ||
CredentialsRetryWait: 1 # Seconds | ||
ConnEstablishingRetry: 10 | ||
ConnRetryWaitTime: 5 | ||
|
||
# AuthMode is the MQTT broker authentication mechanism. Currently, "none" and "usernamepassword" is the only AuthMode supported by this service, and the secret keys are "username" and "password". | ||
AuthMode: "none" | ||
CredentialsName: "credentials" | ||
|
||
# Comment out/remove when using multi-level topics | ||
IncomingTopic: "DataTopic" | ||
ResponseTopic: "ResponseTopic" | ||
UseTopicLevels: false | ||
|
||
# Uncomment to use multi-level topics | ||
# IncomingTopic: "incoming/data/#" | ||
# ResponseTopic: "command/response/#" | ||
# UseTopicLevels: true | ||
|
||
Writable: | ||
# ResponseFetchInterval specifies the retry interval(milliseconds) to fetch the command response from the MQTT broker | ||
ResponseFetchInterval: 500 |
This file was deleted.
Oops, something went wrong.
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,16 @@ | ||
# Pre-define Devices | ||
deviceList: | ||
- name: "MQTT-test-device" | ||
profileName: "Test-Device-MQTT-Profile" | ||
description: "MQTT device is created for test purpose" | ||
labels: [ "MQTT", "test" ] | ||
protocols: | ||
mqtt: | ||
# Comment out/remove below to use multi-level topics | ||
CommandTopic: "CommandTopic" | ||
# Uncomment below to use multi-level topics | ||
# CommandTopic: "command/MQTT-test-device" | ||
# autoEvents: | ||
# interval: "20s" | ||
# onChange: false | ||
# sourceName: "testrandfloat32" |
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
Oops, something went wrong.