pimoroni-pico/micropython/examples/pico_wireless
Phil Howard eb3c8b0ebc PicoWireless: ppwhttp fix to support JSON content type
This is a bit of a fudge, and was only tested against the Cheerlights API.

Detects JSON content type, parses out the content length and truncates the response body to length.

Should probably do this *before* decoding from utf-8.

Updates cheerlights.py API example to support XML, JSON and TEXT endpoints.
2021-09-29 12:47:55 +01:00
..
cheerlights.py PicoWireless: ppwhttp fix to support JSON content type 2021-09-29 12:47:55 +01:00
plasma_ws2812_http.py PicoWireless: move HTTP code to ppwhttp library 2021-09-29 12:20:06 +01:00
ppwhttp.py PicoWireless: ppwhttp fix to support JSON content type 2021-09-29 12:47:55 +01:00
rgb_http.py PicoWireless: move HTTP code to ppwhttp library 2021-09-29 12:20:06 +01:00
secrets.py PicoWireless: move HTTP code to ppwhttp library 2021-09-29 12:20:06 +01:00