Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add comment lines for basic authentication #116

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/http/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
picoLTE.network.register_network()
picoLTE.http.set_context_id()
picoLTE.network.get_pdp_ready()
# Uncomment the line below if you use basic HTTP authentication with username and password given in config.json file.
# picoLTE.http.set_auth()
picoLTE.http.set_server_url()


debug.info("Sending a GET request.")

result = picoLTE.http.get()
Expand Down
2 changes: 2 additions & 0 deletions examples/http/get_with_custom_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
picoLTE.network.register_network()
picoLTE.http.set_context_id()
picoLTE.network.get_pdp_ready()
# Uncomment the line below if you use basic HTTP authentication with username and password given in config.json file.
# picoLTE.http.set_auth()
picoLTE.http.set_server_url()

# Get URL from the config.json.
Expand Down
2 changes: 2 additions & 0 deletions examples/http/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
picoLTE.network.register_network()
picoLTE.http.set_context_id()
picoLTE.network.get_pdp_ready()
# Uncomment the line below if you use basic HTTP authentication with username and password given in config.json file.
# picoLTE.http.set_auth()
picoLTE.http.set_server_url()

debug.info("Sending a POST request.")
Expand Down
2 changes: 2 additions & 0 deletions examples/http/post_with_custom_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
picoLTE.network.register_network()
picoLTE.http.set_context_id()
picoLTE.network.get_pdp_ready()
# Uncomment the line below if you use basic HTTP authentication with username and password given in config.json file.
# picoLTE.http.set_auth()
picoLTE.http.set_server_url()

# Get URL from the config.json.
Expand Down
2 changes: 2 additions & 0 deletions examples/http/put.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
picoLTE.network.register_network()
picoLTE.http.set_context_id()
picoLTE.network.get_pdp_ready()
# Uncomment the line below if you use basic HTTP authentication with username and password given in config.json file.
# picoLTE.http.set_auth()
picoLTE.http.set_server_url()

debug.info("Sending a PUT request.")
Expand Down