Compare commits

..

No commits in common. "3d3ea851a63bdee619cce9c394e34ac769734ab3" and "860bd29ec2323fbb4c5044e6ed3a7f75731f7055" have entirely different histories.

4 changed files with 11 additions and 2 deletions

View File

@ -3,6 +3,14 @@ type: docker
name: default
steps:
- name: code-analysis
image: aosapps/drone-sonar-plugin
settings:
sonar_host:
from_secret: SONAR_HOST
sonar_token:
from_secret: SONAR_CODE
- name: build_application
image: openjdk:11-jdk
commands:

View File

@ -2,7 +2,7 @@ import org.eclipse.paho.client.mqttv3.*
import org.eclipse.paho.client.mqttv3.persist.MemoryPersistence
import java.time.Instant
class MqttSubscriber : MqttCallbackExtended {
class MqttSubscriber() : MqttCallbackExtended {
private val broker = System.getenv("BROKER") ?: "tcp://mqtt.k8s.kmlabz.com:1883"
private val clientId = MqttClient.generateClientId()
private val persistence = MemoryPersistence()

View File

@ -14,5 +14,5 @@ fun main() = runBlocking{
resultProcessor.mapToProcess=resultMap
resultProcessor.process()
}
delay(System.getenv("WAITTIME").toLong()*2)
delay(20000L)
}

View File

@ -1,3 +1,4 @@
import java.text.SimpleDateFormat
import java.time.Instant
import java.time.ZoneId
import java.time.format.DateTimeFormatter