moved config parameter to config.h_dist

This commit is contained in:
Michael Clemens 2021-11-28 19:56:50 +00:00
parent 6231ef97fb
commit 1c1918f227
2 changed files with 9 additions and 4 deletions

8
client/config.h_dist Normal file
View 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

View File

@ -5,16 +5,13 @@
#include <ArduinoJson.h>
#include "hr50_fonts.h"
#include <EasyButton.h>
#include "config.h"
// Pin 0 is the built-in upper button
#define BUTTON_PIN 0
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
String api_button_long = api_base_url + "/exec_serial";
String api_button_short = api_base_url + "/exec_shell";