Newer
Older
JorgeEcheva26
committed
import os
import emulator_utils
JorgeEcheva26
committed
# Añadir el directorio del SDK al PYTHONPATH usando una ruta relativa
script_dir = os.path.dirname(os.path.abspath(__file__)) # Directorio actual del script
sdk_path = os.path.join(script_dir, '..', 'sdk') # Subir un nivel y apuntar a 'sdk'
sys.path.insert(0, sdk_path)
JorgeEcheva26
committed
from sdk import CAPIFInvokerConnector
def showcase_capif_connector():
"""
This method showcases how one can use the CAPIFConnector class.
"""
capif_connector = CAPIFInvokerConnector(config_file=emulator_utils.get_config_file())
capif_connector.register_and_onboard_Invoker()
print("COMPLETED")
if __name__ == "__main__":
#Let's register invoker to CAPIF. This should happen exactly once
showcase_capif_connector()