[Fiware-tech-help] Parse issues when provisioning a device in the JSON IoT Agent

Taz Lodder taz at chalmers.se
Wed Jun 2 15:50:02 CEST 2021


Hi


I have been trying to provision some new devices today and have come across a couple of small but "fatal" (in that provisioning a device fails) issues I thought might be useful to report.


It is not possible to use round brackets: ( or ) in a static_attributes value, eg this fails with status code 200:

{ "name":"description", "type": "Text", "value": "Consumption at Building (Building)"}


I tried to escape the brackets but this fails with status code 500:

{ "name":"description", "type": "Text", "value": "Consumption at Building \(Building\)"}



The other issue I had is it fails also if using a hypen in a fiware service-path, so this fails:

/sweden/goteborg/akademiskaHus/a-building/Electricity


but removing the hyphen works.

Kind regards
Taz Lodder
Chalmers University of Technology

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20210602/33308132/attachment.html>


More information about the Fiware-tech-help mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy