eclipse / mita

mita
Eclipse Public License 2.0
56 stars 20 forks source link

Implementation of Ping in MQTT #348

Closed omeili closed 5 years ago

omeili commented 5 years ago

Current behavior: I am implementing a small data gather application on the XDK where I need to collect data once every 10 mins. I send the data to Eclipse Hono / Bosch IoT Hub. When I send data periodically with period of less than 60 s, everything works as intended. If only send data once every 10s data us bit received by the backend. The backend has static KeepAlive time of 60s.

There might be two issues at play here:

Expected behavior: Data transmission works even with slow transmission frequencies.

Related code:

setup backend: MQTT  {
    transport = net;
    url = "mqtts://mqtt.bosch-iot-hub.com";
    clientId = "org.protiotype:xdk002";
    authentication = Login(username="org.protiotype_xdk002@xxxxxxxf5784b46c387a3a79900c778da_hub", password="xxx");
    certificatePath = "C:/XDK-Workbench/lets-encrypt-x3-cross-signed.pem";
    keepAliveInterval = 60;
    var telemetry = topic(name="telemetry", qos=0);
}

every 600 seconds { let payload = "Hello world"; println(${payload}); backend.telemetry.write(payload); }

Other information: Unfortunately Mita is very sparse with error reporting, so not much to add