Search code examples
fiware

Device discovery in FIWARE IoTAgent-JSON


I am working on FIWARE IoTAgent-JSON. I want to perform device discovery by the same. My expectation from device discovery is that whenever a new device gets registered in IoTAgent-JSON, I receive a notification with device data. Is it possible? If yes, how can this be done?


Solution

  • Whenever a device is registred at IOTA, an entity is created at CB. So, if you create a subscription in CB for that (for instance, a subscription covering all entities of type device) then you can achieve what you want.

    You can learn more on CB subscription in it's corresponding section of the walkthrough documentation.