Skip to content

Commit

Permalink
Merge pull request #73 from fredericvl/fix_piazetta
Browse files Browse the repository at this point in the history
Probably fix for piazetta login
  • Loading branch information
vincentwolsink authored Oct 15, 2023
2 parents 5fed7da + c9028b8 commit edcae65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion py_agua_iot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
API_PATH_DEVICE_BUFFER_READING = "/deviceGetBufferReading"
API_PATH_DEVICE_JOB_STATUS = "/deviceJobStatus/"
API_PATH_DEVICE_WRITING = "/deviceRequestWriting"
API_LOGIN_APPLICATION_VERSION = "1.6.0"
API_LOGIN_APPLICATION_VERSION = "1.9.5"
DEFAULT_TIMEOUT_VALUE = 5

HEADER_ACCEPT = "application/json, text/javascript, */*; q=0.01"
Expand Down Expand Up @@ -205,6 +205,8 @@ def login(self):
extra_login_headers = {
"applicationversion": self.api_login_application_version,
"url": API_PATH_LOGIN.lstrip("/"),
"userid": "null",
"aguaid": "null",
}
headers.update(extra_login_headers)
url = self.login_api_url
Expand Down

0 comments on commit edcae65

Please sign in to comment.