Skip to content

Representação ORION / STH #1

Description

@juliozinga

Boa tarde Lucas e demais da equipe,

Parabéns pelo projeto fiot-client.
Fiquei com uma dúvida.
Olhando a documentação no método subscribe_historical_data() tive a impressão que ao fazer o subscribe no sth/comet a ligação é direta ORION -> STH.
Minha dúvida é se na figura https://github.com/FIoT-Client/fiot-client-tutorial/blob/master/extras/fiware_components_deploy.png a ligação entre ORION e STH realmente passa pelo CYGNUS.
Sei que o CYGNUS pode perfeitamente armazenar no STH, mas também sei que o STH pode ficar "livre", como parece ser a implementação.
O que acham?

def subscribe_historical_data(self, entity_id, attributes):
    """Create a new subscription on attributes to store changes on its values as historical data
    :param entity_id: The id of the entity to be monitored
    :param attributes: The list of attributes do be monitored
    :return: The information of the subscription
    """
    logging.info("Subscribing to historical data")

    notification_url = "http://{}:{}/notify".format(self.sth_host, self.sth_port)
    return self.subscribe_attributes_change(entity_id, attributes, notification_url)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions