-
Notifications
You must be signed in to change notification settings - Fork 66
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
Connecting/ Accessing Hono services from local Machine #535
Comments
Have you followed the tour and have you been able to send telemetry data via the You could try publishing MQTT data first from your local machine using Mosquitto. mosquitto_pub -d -h ${MQTT_ADAPTER_IP} -p ${MQTT_ADAPTER_PORT_MQTTS} -u [email protected] -P demo-secret ${MOSQUITTO_OPTIONS} -t telemetry -m '{
"topic": "org.eclipse.packages.c2e/demo-device/things/twin/commands/modify",
"headers": {},
"path": "/features/temperature/properties/value",
"value": 45
}' Note that in the default configuration, the MQTT adapter only accepts secure connections. |
Also NO i am not able to send from the machine (Ubunut on VM) by mqtt
in this case, I have tried with the demo device and my-device-1, I am getting an error response and the truststore path is set properly too so what is the issue? the demo device or CA file? Also coming to my main question |
Hello @calohmn let me make it simple for you , i have the following services running on ubuntu VM so how can i access the Hono Services outside VM that is from local Machine which is hosting the VM thats my point.
|
Regarding the
and check if there are errors? Regarding your 2nd mosquitto_pub command: As for your main question:
This sounds like a question on how to configure the networking in Proxmox and your VM in order to be able to connect to the |
Thank you @calohmn the problem of MQTT was solved , |
Hello @sophokles73 and @calohmn , I have now set up cloud2edge on my PC(Ubuntu) and not in a VM, and I want to Publish the Telemetry data from a device (M5 core 2) to Hono to update the Digital Twin in Ditto. How can I publish the message to Hono from my devices like M5 core 2? ( I have been trying a lot to figure out this problem, as it is part of my Master Thesis, so your help would be appreciated ) Thank you |
When running Kubernetes inside a VM and you want to access any Kubernetes services from the host, you have to properly configure your VM for this kind of network access. This is unrelated to Hono and there are no constraints there in Hono.
You first have to make sure that your device can connect to the loadbalancer IP of the
there.
to the cloud2edge chart |
Thank you @calohmn the problem was solved |
Hello @calohmn ,
I am trying to connect to Hono MQTT adapter from my M5core 2 device for updating telemetry data like temperature mentioned in cloud2edge tutorial , where Hono is running on Kubernetes on an Ubuntu desktop VM on a Proxmox server.
But unfortunately, I am not able to establish the connection or update the telemetry value of my device.
The device credentials and everything is the same as shown in the Cloud2edge tutorial ,
so how can I solve this problem, any help would be appreciated
Thank you
The text was updated successfully, but these errors were encountered: