Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Documentation
a71ch-aws-client
Commits
8a5909b6
Commit
8a5909b6
authored
Dec 21, 2018
by
apapkovskiy
Browse files
Done some work
parent
ba38c217
Changes
5
Hide whitespace changes
Inline
Side-by-side
Client/PubSub/PubSub.cpp
View file @
8a5909b6
...
...
@@ -305,7 +305,7 @@ namespace awsiotsdk {
int
main
(
int
argc
,
char
**
argv
)
{
std
::
shared_ptr
<
awsiotsdk
::
util
::
Logging
::
ConsoleLogSystem
>
p_log_system
=
std
::
make_shared
<
awsiotsdk
::
util
::
Logging
::
ConsoleLogSystem
>
(
awsiotsdk
::
util
::
Logging
::
LogLevel
::
Info
);
std
::
make_shared
<
awsiotsdk
::
util
::
Logging
::
ConsoleLogSystem
>
(
awsiotsdk
::
util
::
Logging
::
LogLevel
::
Debug
);
awsiotsdk
::
util
::
Logging
::
InitializeAWSLogging
(
p_log_system
);
std
::
unique_ptr
<
awsiotsdk
::
samples
::
PubSub
>
...
...
patches/aws-client-id-fix.patch
0 → 100644
View file @
8a5909b6
samples/PubSub/PubSub.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/samples/PubSub/PubSub.cpp b/samples/PubSub/PubSub.cpp
index 651aa19..bd221aa 100644
--- a/samples/PubSub/PubSub.cpp
+++ b/samples/PubSub/PubSub.cpp
@@ -238,8 +238,8 @@
namespace awsiotsdk {
}
util::String client_id_tagged = ConfigCommon::base_client_id_;
- client_id_tagged.append("_pub_sub_tester_");
- client_id_tagged.append(std::to_string(rand()));
+// client_id_tagged.append("_pub_sub_tester_");
+// client_id_tagged.append(std::to_string(rand()));
std::unique_ptr<Utf8String> client_id = Utf8String::Create(client_id_tagged);
rc = p_iot_client_->Connect(ConfigCommon::mqtt_command_timeout_, ConfigCommon::is_clean_session_,
@@ -305,7 +305,7 @@
namespace awsiotsdk {
int main(int argc, char **argv) {
std::shared_ptr<awsiotsdk::util::Logging::ConsoleLogSystem> p_log_system =
- std::make_shared<awsiotsdk::util::Logging::ConsoleLogSystem>(awsiotsdk::util::Logging::LogLevel::Info);
+ std::make_shared<awsiotsdk::util::Logging::ConsoleLogSystem>(awsiotsdk::util::Logging::LogLevel::Debug);
awsiotsdk::util::Logging::InitializeAWSLogging(p_log_system);
std::unique_ptr<awsiotsdk::samples::PubSub>
rootfs/bin/start-pub-sub-sample
View file @
8a5909b6
...
...
@@ -8,5 +8,13 @@ ls -l $SNAP/jrcp/lib
ls
-l
$SNAP
/certs
ls
-l
$SNAP
cd
$SNAP
./bin/pub-sub-sample configs
if
[
"
$A71CH_CONFIG
"
==
"A71CH_TOOL_CONFIG"
]
;
then
cd
$SNAP
./bin/pub-sub-sample configs
else
$SNAP
/jrcp/lib/nxp_iot_agent_demo
cd
$SNAP_COMMON
$SNAP
/bin/pub-sub-sample certs
fi
rootfs/snapconf.yaml
View file @
8a5909b6
...
...
@@ -3,6 +3,12 @@ conf-files:
replace-template
:
'
export
<config-key>="<value>"'
conf-file
:
/var/snap/a71ch-aws-client/common/.bash_profile
params
:
-
snap-key
:
a71ch-config
config-key
:
A71CH_CONFIG
validator-type
:
range
validator-type
:
regex
validator-value
:
'
^(A71CH_TOOL_CONFIG|NXP_HUB_CONFIG)$'
default-value
:
NXP_HUB_CONFIG
-
snap-key
:
jrcp-port
config-key
:
JRCP_PORT
validator-type
:
range
...
...
snap/snapcraft.yaml
View file @
8a5909b6
...
...
@@ -42,7 +42,7 @@ apps:
OPENSSL_CONF
:
$SNAP/certs/opensslA71CH.cnf
LD_LIBRARY_PATH
:
$LD_LIBRARY_PATH:$SNAP/jrcp/lib
command
:
bin/start-pub-sub-sample
daemon
:
simple
restart-condition
:
always
#
daemon: simple
#
restart-condition: always
plugs
:
&default-plugs
[
network-bind
,
network-control
,
network-setup-control
,
network
,
lib-cert
,
lib-engine
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment