Hi Dojo,
I have an element with a smart serial connection and a http connection.
<Type relativeTimers="true" advanced="smart-serial:Events Connection" communicationOptions="redundantPolling">http</Type>
Is there a way to get the Dataminer IP and port of the events connection in a QAction of this connector?
Context:
I need to send a message to the device
Body:
{
"ServerIDs": ["****"],
"EventsPushApiUrl": <IP address and port of DMA>,
"DpiPushApiUrl": "",
"NavePushApiUrl": "",
"CaptionsPushApiUrl": "",
"EasPushApiUrl": "",
"StreamingMonitorPushApiUrl": ""
}
Thanks in advance
For DM to act as server, you can configure as the ip as "any" and define the port in the element settings (see Configuring a smart-serial connection as a server | DataMiner Docs).
You will need to retrieve the ip of the agent hosting the element, and include the port defined in the element settings so the remote device knows the endpoint.