Skip to content

Commit

Permalink
remove \r used in metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
blalop committed Aug 28, 2021
1 parent f5391db commit 862985b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Change Log
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a changelog](https://github.com/olivierlacan/keep-a-changelog).

## [0.1.0](https://github.com/blalop/PrometheusDHT22Exporter/tree/0.1.0) - 2021-08-28
### Added
- First release
2 changes: 1 addition & 1 deletion PrometheusDHT22Exporter.hh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const uint8_t DHTTYPE = DHT22; // DHT 22 (AM2302), AM2321

// Project specific config
const String METRICS_PREFIX = "esp8266";
const String METRICS_PATH = "/metrics"
const String METRICS_PATH = "/metrics";
2 changes: 1 addition & 1 deletion PrometheusDHT22Exporter.ino
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ void onNotFoundHandler() {
}

String buildMetrics(float temperature, float humidity) {
return METRICS_PREFIX + "_temperature " + String(temperature) + "\r\n" +
return METRICS_PREFIX + "_temperature " + String(temperature) + "\n" +
METRICS_PREFIX + "_humidty " + String(humidity);
}

0 comments on commit 862985b

Please sign in to comment.