mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-26 04:11:18 +00:00
Adding secrets to build
This commit is contained in:
@@ -41,12 +41,14 @@ void EntsoeApi::setup(EntsoeConfig& config) {
|
||||
http.useHTTP10(true);
|
||||
|
||||
#if defined(AMS2MQTT_PRICE_KEY)
|
||||
#pragma message("Using AMS2MQTT_PRICE_KEY from environment")
|
||||
key = new uint8_t[16] AMS2MQTT_PRICE_KEY;
|
||||
hub = true;
|
||||
#else
|
||||
hub = false;
|
||||
#endif
|
||||
#if defined(AMS2MQTT_PRICE_AUTHENTICATION)
|
||||
#pragma message("Using AMS2MQTT_PRICE_AUTHENTICATION from environment")
|
||||
auth = new uint8_t[16] AMS2MQTT_PRICE_AUTHENTICATION;
|
||||
hub = hub && true;
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user