I'm not sure if this is a SBO issue or a connector issue. Anyhow, after completing the sample project, I see that units containing % symbol, i.e. '%' or '% Rh', is not recognized by SBO and the values just shows up with no unit.
Do we need to escape the symbols, or is there something else going on with my specific project?
I'm using VS2017, SBO 22.214.171.124 and the latest connector.
Please correct me if my assumption below is incorrect. From your question I infer SBO is the EWS Client and you have entered ValueItems into a SmartConnector with Unit value that contains the % character. Under this scenario, you do not need to escape anything.
The list of acceptable ValueItem Unit values are listed in Table 101 of the EcoStruxure Web Services Specification (you can access that on the SmartConnectorServer Download Center or the Featured Content of this forum site). In looking in that table, I don't see Relative Humidity listed (although it should be). The proper value for that should be %RH (no space, both letters capitalized).
I confirmed that %RH does work with SBO (we tested 1.8 and 1.9). However, I did encounter more SBO EWS Client "weirdness" in doing this testing. If you edit the point in SmartConnector, SBO does NOT always show the proper property values in the Hardware folder; you will need to re-host the point to get the update.
Let me know if you have any further issues on this.
Yes, SBO is consuming the SmartConnector value items as per your sample project (SmartConnector WeatherExtension).
Right out of the box, using your project, % unit is not displayed in SBO. But I also note that % unit is not in table 102, that cannot be right.
The reason for using '% Rh' was due to the fact that is how SBO writes it. I noticed that hPA in your project did not work, so I looked that up in SBO, and changed it to however SBO displayed it (hPa), and got that working.
Actually, I can see now that SBO (1.9.1) does not even recognize the % unit of it's own EWS value items. Must be a SBO bug.
While SBO does show the unit as % Rh, in order for SBO to properly recognize it, the EWS server should send a unit value of %RH
Do you maybe have an answer regarding just the percent unit as well?