SensorMap Integration

Hello,

I developed a plugin to send commands from the smart client to the event server.

The plugin consists of a set of sensors positioned on a map.

Right click on the sensor, the context menu is displayed with all the commands that I can send to the event server.

For the selected command, I receive the message of type “MessageId.Control.TriggerCommand” and send it to the event server.

So far, no problem.

I would also need to pass some information entered in the smartclient to the event server.

For example: the user who logged in to the smartclient, the identifier of the smartclient from which the command was sent etc …

Is it possible to intercept the click on the specific menu item selected?

Or is there any way to identify the client that sent the command?

thank you,

Francis

It is not possible to pass extra information with the command.

It is not possible to identify the client that sent the command unfortunately.

We have a wish list for developing functionality to pass extra information with the command. Currently there is no concrete plans.

Ok but can you suggest me some best practice to avoid broadcast message ? In other words, when Event Server has completed command (originated by smart client context menù), then send back a message to, at this point, all smart clients on that listener. I can filter Smart Client side, using user sid (take from sender.ObjectIdString), but can’t avoid where same user open more than one client. The flow is a little complicated, so I hope I explained myself.

Thanks.

Ciao.

Gigi

We have talked about this issue with Milestone Development however, there is no way unfortunately, you have described the situation correctly.

Ok. Thank you. I hope that in the future we can receive client FQID or custom data, or more simply, can intercept context menu command directly from client.

Ciao.

Gigi