You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To wrap up our ESP32 WiFi proof-of-concept, the final piece is to add the ability to make an HTTP POST request with a JSON payload to an Ambi backend instance.
Feature specifics
Add a function to send an HTTP POST request to Ambi backend endpoint:
Function should take the following parameters and send off a POST request to host
Client socket
Host IP address
HTTP port of host
HTTP request path (the Ambi API endpoint path minus host IP/port)
It should send a JSON payload as part of the HTTP body
At this time, don't worry about writing unit/integration tests unless it will aid you in completing this work. We'll more intentionally focus on test writing in our next phase when we work to implement a mature ESP32 WiFi Rust crate.
The text was updated successfully, but these errors were encountered:
jhodapp
changed the title
Add function to send an HTTP POST request to Ambi backend endpoint
Add ability to send an HTTP POST request to Ambi backend endpoint
Feb 23, 2022
Summary
To wrap up our ESP32 WiFi proof-of-concept, the final piece is to add the ability to make an HTTP POST request with a JSON payload to an Ambi backend instance.
Feature specifics
Add a function to send an HTTP POST request to Ambi backend endpoint:
Note: don't worry about implementing DNS lookups and using full on hostnames. For the PoC, we can just focus on using straight IP addresses.
Example ambi_mock_client output
Tests
At this time, don't worry about writing unit/integration tests unless it will aid you in completing this work. We'll more intentionally focus on test writing in our next phase when we work to implement a mature ESP32 WiFi Rust crate.
The text was updated successfully, but these errors were encountered: