Data Exchange Device | Telit Cinterion IoT Developer Community
October 10, 2016 - 4:10pm, 2306 views
Hello
Inside Device>Data Exchange Devices there are some columns, with "name", "value", "get", "edit, act. observe" and "deact. observe".
Im trying to access date through commands and see the answer on sensor logic portal. I can see sucesfully dates in "value" but I cannot change the "name" value.
I would like to do somethig like this:
at^sctm? (to see "at^sctm?" in name), 34(to see"34" in value)
then to refresh dates using REPORTING_RATE and in the same arrow where before were this dates can read new commands.
The problem now is that I cannot find the way to change value of "name". This is inside DataExchangeDevice class, as private field.
Is posible to change this "name"'s value?
Hello,
The name that you can see in platform is indeed one of the parameters of object constructor. There is Data Exchange API provided that you can use to create your own data exchange devices and data exchange units inside the devices in your code according to your *****. These labels you can implement in your MIDlet code to describe your device and these labels will be sent to platform when your application connects to is and will be visible there. Whatever you implement with Data Exchange API in your device will be visible on the platform. Please read more details in the user guide and API.
Best regards,
Bartłomiej
Hello, if I unserstand after Booting..."TextToChange" go in the column under "name" with value "random" in Device>DataExchangeDevices.
String TextToChange="random";
MyDataExchangeUnit4 data_unit4=new MyDataExchangeUnit4("MyDataExchangeUnit4 id",TextToChange,false,data_configuration);
I'm trying to make it change in the same way as value(in the second column) can change, but cannot find the way to refresh this value...
In DataExchangeDeviceGRIPConnection (the class that make the refresh) is only option to refreshValue.
I can change the label as you said changing the value of "TextToChange="anotherValueToName"", but this change only after restart and is not a refresh as happends with "value"seems to me that change only after restart the app.
do you know if is posible to refresh this value in the same way as using getValue?
Hello,
The label is one on the constructor parameters and its purpose is to provide the parameter name to the platform. The assumption is that it is connected with the data exchange unit (that can represent some piece of hardware device or software component) and it is not changed until the device is changed. Only the value is a variable to be changed. The label is just a part of description which is constant. It is sent to the platform on application start only.
If you would like to have more variables you can add more data exchange units to the single data exchange device.
Regards,
Bartłomiej