telefonicaid / iotagent-node-lib

Module to enable IoT Agent developers to build custom agents for their devices that can easily connect to NGSI Context Brokers
https://iotagent-node-lib.rtfd.io/
GNU Affero General Public License v3.0
59 stars 84 forks source link

store in device commands from group after CB registration #1540

Closed AlvaroVega closed 6 months ago

AlvaroVega commented 7 months ago

Bug introduced in 3.3.0 by https://github.com/telefonicaid/iotagent-node-lib/pull/1396

commands from groups should be stored in device since registration is only possible against device entity.

Otherwise commands is stored in entity as normal string type attribute.

Moreover any command group modification requires device registration would be done again, and then implies device and entity should be deleted previously.