Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
RagConnect
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JastAdd
RagConnect
Commits
52785f37
Commit
52785f37
authored
4 years ago
by
René Schöne
Browse files
Options
Downloads
Patches
Plain Diff
Use retain for initial robot config.
- see
#26
parent
72b5eccf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/resources/MqttUpdater.jadd
+9
-1
9 additions, 1 deletion
src/main/resources/MqttUpdater.jadd
with
9 additions
and
1 deletion
src/main/resources/MqttUpdater.jadd
+
9
−
1
View file @
52785f37
...
@@ -231,8 +231,16 @@ public class MqttUpdater {
...
@@ -231,8 +231,16 @@ public class MqttUpdater {
}
}
public void publish(String topic, byte[] bytes) {
public void publish(String topic, byte[] bytes) {
publish(topic, bytes, false);
}
public void publish(String topic, byte[] bytes, boolean retain) {
publish(topic, bytes, this.qos, retain);
}
public void publish(String topic, byte[] bytes, org.fusesource.mqtt.client.QoS qos, boolean retain) {
connection.getDispatchQueue().execute(() -> {
connection.getDispatchQueue().execute(() -> {
connection.publish(topic, bytes, qos,
false
, new org.fusesource.mqtt.client.Callback<Void>() {
connection.publish(topic, bytes, qos,
retain
, new org.fusesource.mqtt.client.Callback<Void>() {
@Override
@Override
public void onSuccess(Void value) {
public void onSuccess(Void value) {
logger.debug("Published some bytes to {}", topic);
logger.debug("Published some bytes to {}", topic);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment