-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Irene Bandera <irenebandera@eprosima.com>
- Loading branch information
Showing
4 changed files
with
46 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.. include:: ../../exports/alias.include | ||
|
||
.. _user_manual_nodes_fiware: | ||
|
||
########### | ||
Fiware Node | ||
########### | ||
|
||
This kind of node performs interaction with a `FIWARE context broker <https://fiware-orion.readthedocs.io/en/master/>`__ for handling inference data. | ||
It provides mechanisms to read data from a context broker entity and request inference of this data from an :ref:`user_manual_nodes_inference`. | ||
It also post the received inference to the context broker entity. | ||
To facilitate the inference requests, the Fiware Node includes an :ref:`user_manual_nodes_edge`. | ||
|
||
Steps | ||
----- | ||
|
||
* Create a new :code:`FiwareNode` object with at least a name, a server IP and a server port. | ||
* Start the Flask server. | ||
|
||
.. code-block:: python | ||
server_ip = '192.168.1.1' | ||
server_port = 1028 | ||
# Create a new Fiware Node | ||
node = FiwareNode(name='My_Fiware_Node', | ||
server_ip=server_ip, | ||
server_port=server_port, | ||
context_broker_ip='localhost', | ||
context_broker_port=1026, | ||
entity_id='ID_entity', | ||
entity_data='data', | ||
entity_solution='inference', | ||
domain=0, | ||
logger=CustomLogger(logger_name='FiwareNode', log_level=logging.WARNING)) | ||
# Start the Flask server | ||
node.app.run(host=server_ip, port=server_port) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters