Skip to content

Commit

Permalink
remove demo mentioning
Browse files Browse the repository at this point in the history
  • Loading branch information
srdjanStankovic committed May 24, 2022
1 parent a57a773 commit ad9fdf0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 33 deletions.
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ if (${BUILD_APP})
# Place the executable file in /usr/bin
install(TARGETS ${PROJECT_NAME}App DESTINATION /usr/bin)

# Place the ca.crt file in /usr/bin
install(FILES out/ca.crt DESTINATION /etc/wolkGateway
PERMISSIONS OWNER_WRITE OWNER_READ GROUP_WRITE GROUP_READ WORLD_READ)

# Place the config files and service unit file.
install(FILES out/gatewayConfiguration.json DESTINATION /etc/wolkGateway
PERMISSIONS OWNER_WRITE OWNER_READ GROUP_WRITE GROUP_READ WORLD_READ)
Expand Down
24 changes: 0 additions & 24 deletions out/ca.crt

This file was deleted.

4 changes: 2 additions & 2 deletions out/gatewayConfiguration.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"key": "",
"password": "",

"platformMqttUri": "ssl://api-demo.wolkabout.com:8883",
"platformMqttUri": "ssl://insert_host:insert_port",
"platformMqttKeepAliveSeconds": 10,
"localMqttUri": "tcp://localhost:1883",

"platformTrustStore": "/etc/wolkGateway/ca.crt",
"platformTrustStore": "/PATH/TO/YOUR/CA.CRT/FILE",

"subdeviceManagement": "gateway"
}
2 changes: 1 addition & 1 deletion src/WolkBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ wolkabout::WolkBuilder::operator std::unique_ptr<Wolk>()
}

WolkBuilder::WolkBuilder(GatewayDevice device)
: m_platformHost{WOLK_DEMO_HOST}
: m_platformHost{WOLK_HOST}
, m_gatewayHost{MESSAGE_BUS_HOST}
, m_device{std::move(device)}
, m_mqttKeepAliveSec(60)
Expand Down
4 changes: 2 additions & 2 deletions src/WolkBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ class WolkBuilder final

bool m_keepAliveEnabled = true;

static const constexpr char* WOLK_DEMO_HOST = "ssl://api-demo.wolkabout.com:8883";
static const constexpr char* WOLK_HOST = "ssl://insert_host:insert_port";
static const constexpr char* MESSAGE_BUS_HOST = "tcp://localhost:1883";
static const constexpr char* TRUST_STORE = "ca.crt";
static const constexpr char* TRUST_STORE = "/PATH/TO/YOUR/CAR.CRT/FILE";
static const constexpr char* DATABASE = "deviceRepository.db";
};
} // namespace wolkabout
Expand Down

0 comments on commit ad9fdf0

Please sign in to comment.