Skip to content

Commit c2a8483

Browse files
authored
[QA] Update API
1 parent 83f0c18 commit c2a8483

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,18 @@ The picture represent the demo project:
6363

6464
``` gdscript
6565
# Initialize the client
66-
# @param id string to use as the client id.
66+
# @param id string to use as the client id
6767
# @param host the broker address
6868
# @param port the broker port
6969
# @return the reason code, if something wrong happen. 0 = OK (see https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901031)
7070
initialise(id: String, host: String, port: String) -> int
7171
72+
# Set username & password
73+
# @param p_username username
74+
# @param p_pasword password
75+
# @return the reason code, if something wrong happen. 0 = OK (see https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901031)
76+
username_pw_set(username: String, password: String) -> int
77+
7278
# Return true if connected
7379
# @return true if connected
7480
is_connected_to_broker() -> bool

0 commit comments

Comments
 (0)