Skip to content

Commit

Permalink
now machine info is published retained.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkohout committed Oct 17, 2024
1 parent 570fe86 commit 36a07a7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ ENV BROKER tcp://localhost:1883
ENV REFBOX localhost
ENV TEAM GRIPS
ENV KEY randomkey
ENTRYPOINT ["sh", "-c", "java -jar /home/gradle/src/app/build/libs/mqtt-bridge-0.6-all.jar -b $BROKER -r $REFBOX -t $TEAM -k $KEY"]
ENTRYPOINT ["sh", "-c", "java -jar /home/gradle/src/app/build/libs/mqtt-bridge-0.7-all.jar -b $BROKER -r $REFBOX -t $TEAM -k $KEY"]
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ plugins {

group = 'io.github.robocup-logistics'
archivesBaseName = "mqtt-bridge"
version = '0.6'
version = '0.7'

repositories {
// Use Maven Central for resolving dependencies.
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/rcll/java/RefboxMqttHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private void handleOrderInfo(OrderInfoProtos.OrderInfo orderInfo) {

@SneakyThrows
private void handleMchineInfo(MachineInfoProtos.MachineInfo machineInfo) {
this.mqttClient.publish(this.prefix + "/machine_info", new MqttMessage(toJson(machineInfo).getBytes()));
this.mqttClient.publish(this.prefix + "/machine_info", toJson(machineInfo).getBytes(), 1, true);
}

@SneakyThrows
Expand Down

0 comments on commit 36a07a7

Please sign in to comment.