You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set up the Rdcore-API-Gateway as per the docs and didn't see any messages going over MQTT. In my case, the service does not listen on the loopback interface so is not reachable via http://127.0.0.1:8001. My understanding is that I should be able to set a URL using Settings>MQTT in the GUI to define an alternative URL for the gateway.
I set up the Rdcore-API-Gateway as per the docs and didn't see any messages going over MQTT. In my case, the service does not listen on the loopback interface so is not reachable via http://127.0.0.1:8001. My understanding is that I should be able to set a URL using Settings>MQTT in the GUI to define an alternative URL for the gateway.
Poking around, I noticed that the URL value appears to be pulled from "api_gateway_url" as per this line:
https://github.com/RADIUSdesk/rdcore/blob/cake4/cake4/rd_cake/src/Controller/ApActionsController.php#L111
Looking elsewhere, it appears that the value defined in the GUI is "api_mqtt_gateway_url" rather than "api_mqtt_gateway"
https://github.com/RADIUSdesk/rdcore/blob/cake4/cake4/rd_cake/src/Controller/SettingsController.php#L732
I did a quick hack using the following on rdcore/cake4/rd_cake/src/Controller/ApActionsController.php
With that in place, I started to see messages passing through mqtt.
With the way the existing code is, it looks like it's just going to always default to http://127.0.0.1:8001 rather than using the value from the GUI.
The text was updated successfully, but these errors were encountered: