@Override public void declareConfiguration(GreenFramework builder) { //TODO: the base is wrong for a script since they do not match total... ScriptedNonThreadScheduler.debugStageOrder = null; final String brokerHost = "127.0.0.1"; //1883 //final String brokerHost = "172.16.10.52"; //final String brokerHost = "thejoveexpress.local"; // Raspberry Pi0 //final String brokerHost = "test.mosquitto.org"; final int port = 1883;//8883; // Create a single mqtt client mqttConfig = builder.useMQTT(brokerHost, port, name, 200) //default of 10 in flight //.useTLS() .cleanSession(true) .keepAliveSeconds(10) .lastWill("last/will", false, MQTTQoS.atLeastOnce, blobWriter -> {blobWriter.writeBoolean(true);}); // Timer rate builder.setTimerPulseRate(1000); //once per second //off for build server// //builder.enableTelemetry(8099); }
if (savePosition==-1) { //new file writer.writePackedInt(blockSize); writer.writeBoolean(supportBitMaps); writer.writeBoolean(supportRLE); writer.writePackedInt(blockLimit); writer.writePackedInt(recycledCount);
if (savePosition==-1) { //new file writer.writePackedInt(blockSize); writer.writeBoolean(supportBitMaps); writer.writeBoolean(supportRLE); writer.writePackedInt(blockLimit); writer.writePackedInt(recycledCount);
conFeedbackService.publishTopic((w)-> { w.writeInt(MQTTConnectionStatus.fromSpecification(resultCode).getSpecification()); w.writeBoolean(sessionPresent != 0); });