Hi,
Could it be that renaming of device in ST App is not propagated to the platform?
To reproduce:
- open logger
- create LAN device, for example a switch
- press a button. You should see emitting event log with device id and name
- rename the device
- press a button. You will see emitting event with the old name
My use case:
For virtual things driver, I’d like to show a list of virtual devices created. Naturally, once the device name is changed, I’d like to be able to show the new one.
I also tried to force refresh the driver’s cache:
local device_uuid_list = driver.device_api.get_device_list()
for i, uuid in ipairs(device_uuid_list) do
driver:get_device_info(uuid, true)
end
but it didn’t do any good.
Then I tried to print json, returned from driver.device_api.get_device_info.
This call returns the old name.
Thank you for your help