I'm trying to import a gatt into Custom BLE Gatt for an NCP project. I get the following Error dialog window after selecting the project I want to import the GATT from. Problem loading GATT stream.Feature 'hardware' not found. (file:///c:/SiliconLabs/SimplicityStudio/v4/tempFile.xml, 9, 35) I looked in the v4 directory and there isn't any tempFile.xml file. What generates this file?
I am able to reproduce the issue as well. I will investigate further and get back to you. I see the error if I try to import a .bgproj file or a .xml file.
The problem you see is related to the fact that we have two formats of the .bgproj file structure, and GATT editor's import supports only one of them currently.
The none supported format is when the .bgproj file points to other files. The supported is when it is self-contained.
So the workaround would be to slightly modify the gatt.xml file and try to import it.
<?xml version="1.0" encoding="UTF-8" ?>
… whatever was here originally…
I will investigate how can we support the currently unsupported format.
From the error message, I believe you copied the gatt.xml content into .bgproj file. I suggested to modify the gatt.xml file and import the modified gatt.xml file. (Not the .bgproj file.) Is that the case?
Inserting screenshot: There is a toolbar over the textbox I write the comment . It has a "insert/edit image" button. Did you try that?
You were right. I still had the project referencing other files. Once I removed all but the reference to gatt_mod.xml, the gatt_mod.xml file was imported.
I have been using HTML instead of Rich Text. Thanks for that info.