-
Notifications
You must be signed in to change notification settings - Fork 14
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
Adds basic MQTT support with remote events #1509
Conversation
reinhapa
commented
Apr 5, 2023
- adds short cut to signal restart on rc 42
- adds heartbeat over mqtt
Initial implementation for #906 |
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've noted a few points but looks good.
- adds short cut to signal restart on rc 42 - adds heartbeat over mqtt Signed-off-by: Patrick Reinhart <[email protected]>
@mklaehn addressed re-use of JsonDataConverter but switched to JSONB within. |
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.
Okay, works for me :)
dependencies { | ||
implementation project(':tweetwallfx-configuration') | ||
implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5' | ||
implementation 'org.slf4j:slf4j-api:2.0.6' |
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.
not strictly required at the moment as the rootProject adds it as implementation dependency to every leaf project. not bad per se...
implementation 'org.slf4j:slf4j-api:2.0.6' |
|
||
@Test | ||
void convertFromInputStream() { | ||
var is = new ByteArrayInputStream("{\"one\":\"11\",\"tree\":false,\"two\":22}".getBytes(UTF_8)); |
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 works.
with text block this would look like
var is = new ByteArrayInputStream("{\"one\":\"11\",\"tree\":false,\"two\":22}".getBytes(UTF_8)); | |
var is = new ByteArrayInputStream("""{"one":"11","tree":false,"two":22}""".getBytes(UTF_8)); |