cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Sending Commands via AE to Service Cockpit

Former Member
0 Likes
268

Hi,

i'm currently trying to receive command sent by the "Application Enablement" to the Service Cockpit and ultimately to the corresponding device. I do this to be able to send commands from applications that I build upon the AE to my devices.

To set everything up i've primarly used two sources: Blogpost, Repository. I'm aware that both are not up to date and contain a few depracated API calls. They served as a reference.

From what I can tell I managed to create the neccessary components. This is the view i have from the AE on my Thing:

As you can see, the "Thing'" receives data from the Device and it also has an Target Value input field which is linked to a "Command" capability on Service Cockpit. The Target Value input field only accepts numbers, commatas, dots etc. and the character 'e' as valid input, everything else is not shown.

The Mapping looks like this:

I have created the mapping with help of the API because doing it inside the AE didn't work. ( TargetValue didn't get saved ). Interestly the creating the mapping with the API only worked, if both the measure capability and command capability have the same datatype as the PropertySet. Which in my case means that both the command and the measure are both modeled as "Float" in the Service Cockpit, which is counterintuitive as the command is meant to be boolean.

In the first Image you can see that data is present in the AE which was sent by a Device. My theory is that the command is somehow lost inbetween the AE and the Service Cockpit.

I would appreciate any kind of help.

Christoph

I might edit this question to add addional information.

Accepted Solutions (0)

Answers (1)

Answers (1)

marcus_behrens1
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Christoph, were you able to resolve this? If yes please post the update here for others that might have the same issue. Regards, Marcus