Souradeep Nanda
Souradeep Nanda

Reputation: 3288

In Azure IOT Device Portal, how to change data field names?

The sample comes with temperature and humidity as data fields. Although I replaced the data with my own different fields, the names remain the same.

I cannot find a simple rename column option. How do I change it?

Upvotes: 0

Views: 71

Answers (1)

Rita Han
Rita Han

Reputation: 9700

You can follow these steps:

  1. In the code, you need change the name in DeviceRuleDataFields class, for example, I changed "Humidity" to "HumidityEdit", look at this picture: enter image description here
  2. In IoT Device Portal Web page, you need select the rule you want to change, and you will see "Rule Properties" and "Edit" button in the right region, like this: enter image description here
  3. Press the "Edit" button and you enter the rule edit page, in the "DATA FIELD" select the "HumidityEdit", like this: enter image description here
  4. Save the change of the rule and you will get the changed data field name of the rule, look at this picture: enter image description here

Upvotes: 1

Related Questions