From 39e2a8ee743db1e70596c26aa31f7e1d207f2cc0 Mon Sep 17 00:00:00 2001 From: Bridget Date: Mon, 13 Apr 2020 15:15:05 +0200 Subject: [PATCH] Rename connection intitialization string --- endpoint.lsl | 2 +- lib.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/endpoint.lsl b/endpoint.lsl index b0e393e..0a69b70 100644 --- a/endpoint.lsl +++ b/endpoint.lsl @@ -55,7 +55,7 @@ default if(llJsonGetValue(body, ["secret_key"]) == SECRET_KEY) { string command = llJsonGetValue(body, ["command"]); - if(command == "init") + if(command == "connect") { respond(id, 200, "uuid", llGetKey()); connected = 1; diff --git a/lib.py b/lib.py index ce808db..690789d 100644 --- a/lib.py +++ b/lib.py @@ -35,7 +35,7 @@ def connect(url: str, secret_key: str) -> str: """Connect to the given URL. Returns the UUID of the endpoint.""" - uuid = send_cmd(url, secret_key, "init").get("uuid", None) + uuid = send_cmd(url, secret_key, "connect").get("uuid", None) if not uuid: raise InvalidResponseError("Error: Remote did not return its UUID")