Switch to desktop version  
Publish Tag Unit - Printable Version

+- Ewon Technical Forum (https://techforum.ewon.biz)
+-- Forum: Development (https://techforum.ewon.biz/forum-50.html)
+--- Forum: BASIC Script (https://techforum.ewon.biz/forum-52.html)
+--- Thread: Publish Tag Unit (/thread-1667.html)



Publish Tag Unit - johnmacenri - 10-03-2021

I want to include the units set on a tag as part of the JSON I'm publishing to IOT Core. I have a tag with °C set, but when I use
GETSYS TAG,"Unit"
to get the Tag unit, it comes back as "CEL" and not "°C" 
Is there a way to send the real unit string?

Thanks, John.



RE: Publish Tag Unit - alma - 22-09-2021

Hi John.

Sorry for the late response.

There's a workaround for your issue : Use a custom unit for your tag. You can define it as "°C" it will work.

Regards,
Alexandre.