propertiesV2List seems to not be working. My code :
Future<void> fetchThingProperties() async {
try {
final response = await http.get(
Uri.parse(
"https://api2.arduino.cc/iot/v2/things/{thing_id}/properties"),
headers: {"Authorization": "Bearer $arduinoAccessToken"},
);
print("response in fetchThingProperties:");
print(response.body);
} catch (e) {
print("Error in fetchThingProperties:");
print(e);
}
this returns
{"id":"swl7wWVm","code":"not_found","status":404,"detail":"thing not found: sql: no rows in result set"}
the accessToken and thing id is valid since e.g., propertiesV2Show work.
Could anyone tell me why?