mirror of
https://codeberg.org/mclemens/hr50-remote-display.git
synced 2024-09-27 22:06:09 -04:00
moved config parameter to config.h_dist
This commit is contained in:
parent
6231ef97fb
commit
1c1918f227
8
client/config.h_dist
Normal file
8
client/config.h_dist
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#ifndef config_h
|
||||||
|
#define config_h
|
||||||
|
|
||||||
|
const char* ssid = "<WIFI-SSID>";
|
||||||
|
const char* password = "<WIFI-PASSWORD>";
|
||||||
|
String api_base_url = "http://<IP_OF_HR50_API>:5000";
|
||||||
|
|
||||||
|
#endif
|
@ -5,16 +5,13 @@
|
|||||||
#include <ArduinoJson.h>
|
#include <ArduinoJson.h>
|
||||||
#include "hr50_fonts.h"
|
#include "hr50_fonts.h"
|
||||||
#include <EasyButton.h>
|
#include <EasyButton.h>
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
// Pin 0 is the built-in upper button
|
// Pin 0 is the built-in upper button
|
||||||
#define BUTTON_PIN 0
|
#define BUTTON_PIN 0
|
||||||
|
|
||||||
EasyButton button(BUTTON_PIN);
|
EasyButton button(BUTTON_PIN);
|
||||||
|
|
||||||
const char* ssid = "<WIFI-SSID>";
|
|
||||||
const char* password = "<WIFI-PASSWORD>";
|
|
||||||
String api_base_url = "http://<IP_OF_HR50_API>:5000";
|
|
||||||
|
|
||||||
// Contruct API calls
|
// Contruct API calls
|
||||||
String api_button_long = api_base_url + "/exec_serial";
|
String api_button_long = api_base_url + "/exec_serial";
|
||||||
String api_button_short = api_base_url + "/exec_shell";
|
String api_button_short = api_base_url + "/exec_shell";
|
||||||
|
Loading…
Reference in New Issue
Block a user