Skip to content

Commit

Permalink
FlipperHTTP: Use UART chosen in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Nov 11, 2024
1 parent 20148dd commit 009296e
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion flip_library/flipper_http/flipper_http.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
#include <furi_hal_gpio.h>
#include <furi_hal_serial.h>
#include <storage/storage.h>
#include <momentum/settings.h>

// STORAGE_EXT_PATH_PREFIX is defined in the Furi SDK as /ext

#define HTTP_TAG "FlipLibrary" // change this to your app name
#define http_tag "flip_library" // change this to your app id
#define UART_CH (FuriHalSerialIdUsart) // UART channel
#define UART_CH (momentum_settings.uart_esp_channel) // UART channel
#define TIMEOUT_DURATION_TICKS (5 * 1000) // 5 seconds
#define BAUDRATE (115200) // UART baudrate
#define RX_BUF_SIZE 1024 // UART RX buffer size
Expand Down
3 changes: 2 additions & 1 deletion flip_social/flipper_http/flipper_http.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
#include <furi_hal_gpio.h>
#include <furi_hal_serial.h>
#include <storage/storage.h>
#include <momentum/settings.h>

// STORAGE_EXT_PATH_PREFIX is defined in the Furi SDK as /ext

#define HTTP_TAG "FlipSocial" // change this to your app name
#define http_tag "flip_social" // change this to your app id
#define UART_CH (FuriHalSerialIdUsart) // UART channel
#define UART_CH (momentum_settings.uart_esp_channel) // UART channel
#define TIMEOUT_DURATION_TICKS (5 * 1000) // 5 seconds
#define BAUDRATE (115200) // UART baudrate
#define RX_BUF_SIZE 1024 // UART RX buffer size
Expand Down
3 changes: 2 additions & 1 deletion flip_store/flipper_http/flipper_http.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
#include <furi_hal_gpio.h>
#include <furi_hal_serial.h>
#include <storage/storage.h>
#include <momentum/settings.h>

// STORAGE_EXT_PATH_PREFIX is defined in the Furi SDK as /ext

#define HTTP_TAG "FlipStore" // change this to your app name
#define http_tag "flip_store" // change this to your app id
#define UART_CH (FuriHalSerialIdUsart) // UART channel
#define UART_CH (momentum_settings.uart_esp_channel) // UART channel
#define TIMEOUT_DURATION_TICKS (5 * 1000) // 5 seconds
#define BAUDRATE (115200) // UART baudrate
#define RX_BUF_SIZE 1024 // UART RX buffer size
Expand Down
3 changes: 2 additions & 1 deletion flip_trader/flipper_http/flipper_http.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
#include <furi_hal_gpio.h>
#include <furi_hal_serial.h>
#include <storage/storage.h>
#include <momentum/settings.h>

// STORAGE_EXT_PATH_PREFIX is defined in the Furi SDK as /ext

#define HTTP_TAG "FlipTrader" // change this to your app name
#define http_tag "flip_trader" // change this to your app id
#define UART_CH (FuriHalSerialIdUsart) // UART channel
#define UART_CH (momentum_settings.uart_esp_channel) // UART channel
#define TIMEOUT_DURATION_TICKS (5 * 1000) // 5 seconds
#define BAUDRATE (115200) // UART baudrate
#define RX_BUF_SIZE 1024 // UART RX buffer size
Expand Down
3 changes: 2 additions & 1 deletion flip_weather/flipper_http/flipper_http.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
#include <furi_hal_gpio.h>
#include <furi_hal_serial.h>
#include <storage/storage.h>
#include <momentum/settings.h>

// STORAGE_EXT_PATH_PREFIX is defined in the Furi SDK as /ext

#define HTTP_TAG "FlipWeather" // change this to your app name
#define http_tag "flip_weather" // change this to your app id
#define UART_CH (FuriHalSerialIdUsart) // UART channel
#define UART_CH (momentum_settings.uart_esp_channel) // UART channel
#define TIMEOUT_DURATION_TICKS (5 * 1000) // 5 seconds
#define BAUDRATE (115200) // UART baudrate
#define RX_BUF_SIZE 1024 // UART RX buffer size
Expand Down
3 changes: 2 additions & 1 deletion flip_wifi/flipper_http/flipper_http.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
#include <furi_hal_gpio.h>
#include <furi_hal_serial.h>
#include <storage/storage.h>
#include <momentum/settings.h>

// STORAGE_EXT_PATH_PREFIX is defined in the Furi SDK as /ext

#define HTTP_TAG "FlipWiFi" // change this to your app name
#define http_tag "flip_wifi" // change this to your app id
#define UART_CH (FuriHalSerialIdUsart) // UART channel
#define UART_CH (momentum_settings.uart_esp_channel) // UART channel
#define TIMEOUT_DURATION_TICKS (5 * 1000) // 5 seconds
#define BAUDRATE (115200) // UART baudrate
#define RX_BUF_SIZE 1024 // UART RX buffer size
Expand Down
3 changes: 2 additions & 1 deletion web_crawler/flipper_http/flipper_http.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
#include <furi_hal_gpio.h>
#include <furi_hal_serial.h>
#include <storage/storage.h>
#include <momentum/settings.h>

// STORAGE_EXT_PATH_PREFIX is defined in the Furi SDK as /ext

#define HTTP_TAG "Web Crawler" // change this to your app name
#define http_tag "web_crawler" // change this to your app id
#define UART_CH (FuriHalSerialIdUsart) // UART channel
#define UART_CH (momentum_settings.uart_esp_channel) // UART channel
#define TIMEOUT_DURATION_TICKS (5 * 1000) // 5 seconds
#define BAUDRATE (115200) // UART baudrate
#define RX_BUF_SIZE 2048 // UART RX buffer size
Expand Down

0 comments on commit 009296e

Please sign in to comment.