Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of Ping in MQTT #348

Closed
omeili opened this issue Jun 14, 2019 · 0 comments · Fixed by #353
Closed

Implementation of Ping in MQTT #348

omeili opened this issue Jun 14, 2019 · 0 comments · Fixed by #353
Assignees
Labels
Bug Something isn't working Platform: XDK110

Comments

@omeili
Copy link

omeili commented Jun 14, 2019

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:

  • Looking into the generated code, PINGREQ/PINGRESP do not seem to be implemented in the MQTT code generator
  • reconnect before transmitting the next message somehow doesn't seen to kick in

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

@wegendt-bosch wegendt-bosch self-assigned this Jun 28, 2019
@wegendt-bosch wegendt-bosch added Bug Something isn't working Platform: XDK110 labels Jun 28, 2019
wegendt-bosch added a commit that referenced this issue Jun 28, 2019
wegendt-bosch added a commit that referenced this issue Jul 8, 2019
wegendt-bosch added a commit that referenced this issue Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Platform: XDK110
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants