-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix pubber for proxy device through gateway, and also periodic discovery timing #341
Conversation
I can't connect as GAT-123:
As AHU-22, it connects for a period but then disconnects with errors in terminal. |
Ok, fixed the GAT-123 issue -- so that should be better.
I can't reproduce the AHU-22 disconnection issue you cite -- if anything I
think that might be a separate issue/fix, so I'd propose if that's a
persistent issue (that's causing us some problems somewhere) then we can
address separately.
…On Thu, May 26, 2022 at 4:24 AM Noureddine ***@***.***> wrote:
I can't connect as GAT-123:
***@***.*** udmi % bin/pubber ~/udmi_site_model daq1-273309 GAT-123 123
Building pubber...
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Running tools version 1.3.13-76-gd4622319
INFO daq.pubber.Pubber - 2022-05-26T11:14:40Z Configuring with key type ES256
Exception in thread "main" java.lang.NullPointerException
at daq.pubber.Pubber.processDeviceMetadata(Pubber.java:291)
at daq.pubber.Pubber.loadDeviceMetadata(Pubber.java:267)
at daq.pubber.Pubber.initializeDevice(Pubber.java:353)
at daq.pubber.Pubber.initialize(Pubber.java:525)
at daq.pubber.Pubber.singularPubber(Pubber.java:215)
at daq.pubber.Pubber.main(Pubber.java:200)
As AHU-22, it connects for a period but then disconnects with errors in
terminal
<https://gist.github.com/noursaidi/b08975cd2e9e0ab50e2af6fbbd6a6106>.
Looking at my GCP logs <https://cloudlogging.app.goo.gl/r1JQxaYNptdzmwog6>
it looks like AHU-22 is being disconnected by GCP for updating state > 1/s
and is not reattached after
—
Reply to this email directly, view it on GitHub
<#341 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIEPD32MQY4YWASPUQYAN3VL5NPVANCNFSM5W6BFVLA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
bin/setup_base
Outdated
@@ -1,5 +1,7 @@ | |||
#!/bin/bash | |||
|
|||
sudo apt-get install hxtools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could generate a user prompt. If we going with rot13 how about:
sudo apt-get install -y hxtools
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -11,7 +11,11 @@ fi | |||
project_id=$1 | |||
shift | |||
|
|||
echo 'Using target project (base64):' $(echo =$project_id | base64) | |||
if [[ -n `which rot13` ]]; then | |||
echo 'Using target project (rot13):' $(echo $project_id | rot13) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the goal here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added comment. Goal is to obfuscate so that it can be viewed in server-side logs.
@@ -65,6 +68,9 @@ public class MqttPublisher { | |||
private static final int PUBLISH_THREAD_COUNT = 10; | |||
private static final String HANDLER_KEY_FORMAT = "%s/%s"; | |||
private static final int TOKEN_EXPIRY_MINUTES = 60; | |||
private static final int QOS_AT_MOST_ONCE = 0; | |||
private static final int QOS_AT_LEAST_ONCE = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(NOP) It's interesting the library doesn't make constants for this stuff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know -- I had to actually go look at documentation somewhere to figure out what the values were.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(NOP) Yeah, me too, to confirm/understand your naming. 2X work!
No description provided.