Hacking on the HTTP API¶
This process describes how to hack efficiently on the HTTP API.
For hacking on the code in general, you should be able to operate the Terkin Datalogger Sandbox and the MicroTerkin Agent well. Knowing something about the Terkin Firmware maintenance mode will also do no harm.
Steps outlined in this document assume you are running the development sandbox successfully.
For the baseline sandbox installation, please follow the documentation at operate the Terkin Datalogger Sandbox.
Disable deep sleep and watchdog features in your
Provision source code and restart the device
# Start MicroTerkin Agent make terkin-agent action=monitor # Watch console output make console # Upload files and restart the device make recycle-ng
4. Send requests to the HTTP API
http "http://$(cat .terkin/floatip)/status" OK
terkin/api/http.py will be the right place to look at.