xenoterracide
01/23/2019, 8:19 PMclass PhgEdsClient : Consumer<EngDataStructure> {
val mqttClient: MqttClient
constructor( serverUri : String ) {
mqttClient = {MqttClient(serverUri, PhgEdsClient::class.simpleName, MemoryPersistence())}()
}
constructor( val mqttClient: MqttClient)
other variation, that doesn’t compile
class PhgEdsClient( val mqttClient: MqttClient ) : Consumer<EngDataStructure> {
constructor( serverUri : String ) {
this(MqttClient(serverUri, PhgEdsClient::class.simpleName, MemoryPersistence()))
}
stephan_marshay
01/23/2019, 8:25 PMSecondary Constructors