cancel
Showing results for 
Search instead for 
Did you mean: 

Write data from browser to Socket connection via PCo

0 Kudos

Hi,

I have a source system of type TCP / IP socket. This is a connection to a weighing scale.

Based on the source system I created an agent instance with a websocket notification. This websocket I can connect to from my web application to read the weights.

However I also want to send commands from the web application to the scale, so in the other direction. Currently I am doing this over the MII application server. For this I enabled the 'SAP MII Query server' on the agent instance and from MII I am using the 'CALL SEND' command via fixedQuery.

This is not a good solution because: the frequency of sending commands is too high, the MII server does not need to be involved and is only adding more delay.

So is there any way to write data from the web application directly to the socket via PCO? I tried sending commands over the websocket but it is not accepting whatever input I try.

The documentation of the websocket does specify an example to write tags but this seems to be aimed for OPC source systems, not for Sockets.

Thanks

Accepted Solutions (0)

Answers (0)