README.md 2.0 KB

FlipperHTTP

HTTP library for Flipper Zero. Compatible with Wifi Dev Board for Flipper Zero (ESP32S2 Dev Module).

Installation

  1. Download the flipper_http_bootloader.bin, flipper_http_firmware_a.bin, and flipper_http_partitions.bin files.
  2. Connect your Flipper Zero to your computer.
  3. Open up qFlipper.
  4. Click on the File-Opener.
  5. Naviate to `SD Card/apps_data/esp_flasher/
  6. Drag all three bin files (or the entire folder) into the directory.
  7. Disconnect your Flipper Zero from your computer.
  8. Plug your Wi-Fi Devboard into the Flipper.
  9. Press and keep holding the boot button while you press the reset button once, release the boot button after 2 seconds.
  10. Open the ESP Flasher app on your Flipper Zero, it should be located under Apps->GPIO from the main menu. If not, download it from the Flipper App Store.
  11. Click on Manual Flash.
  12. Click on Bootloader and select the flipper_http_bootloader.bin that you downloaded earlier.
  13. Click on Part Table and select the flipper_http_partitions.bin that you downloaded earlier.
  14. Click on FirmwareA and select the flipper_http_firmware_a.bin that you downloaded earlier.
  15. Click on FLASH - fast and follow the instructions on the screen.
  16. Now you are all set to use the Web Crawler app.

Guide: https://www.youtube.com/watch?v=Y2lUVTMTABE&t=19s

Usage

The flipper_http.h file is for seamless use of the FlipperHTTp Firmware in C applications and is the root of the Web Crawler app. A Javascript library will be available soon, followed by a mPython library.

General

  • Init:
    • flipper_http_init(FlipperHTTP_Callback callback, void *context)
  • DeInit:
    • flipper_http_deinit()

Wifi

  • Connect To Wifi:
    • flipper_http_connect_wifi()
  • Disconnect:
    • flipper_http_disconnect_wifi()
  • Ping:
    • flipper_http_ping()
  • Save Wifi:
    • flipper_http_save_wifi(const char *ssid, const char *password)

Extras

  • Send Data:
    • flipper_http_send_data(const char *data)
  • Rx Callback:
    • flipper_http_rx_callback(const char *line, void *context)