Skip to Content

Write data from browser to Socket connection via PCo


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.


Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

0 Answers