Skip to content

Commit

Permalink
Update connectorconf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
emiliocimino committed Jan 19, 2023
1 parent 7f9ff88 commit cd90db1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions receiver/connectorconf.py
Expand Up @@ -5,14 +5,14 @@

class ReceiverConfiguration():
_instance = None

def __new__(cls):

if not cls._instance:
cls._instance = super().__new__(cls)
return cls._instance

def __init__(self) -> None:
def __init__(self):
# Address and port of the HTTP Endpoint
self.http_address = socket.gethostbyname(socket.gethostname())
self.http_port = 8061
Expand All @@ -33,13 +33,13 @@ def __init__(self) -> None:
class ReplierConfiguration():
_instance = None

def __new__(cls) :
def __new__(cls):

if not cls._instance:
cls._instance = super().__new__(cls)
return cls._instance

def __init__(self) -> None:
def __init__(self):
# Context Broker API to send back data
self.api_url = "http://localhost:1026/v2/entities/urn:ngsi-ld:Product:010/attrs/price/"
self.api_method = "PUT" #Choose among POST, PUT or PATCH
Expand Down

0 comments on commit cd90db1

Please sign in to comment.